Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Remove Special Characters and Numbers From a Wordlist Post 303032804 by sub terra on Sunday 24th of March 2019 12:20:34 PM
Old 03-24-2019
So using this will remove anything not in the U.S alphabet if I understand you correctly?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

remove special and unicode characters

Hi, How do I remove the lines where special characters or Unicode characters appear? The following query does work but I wonder if there is a better way. cat test.txt | egrep -v '\)|#|,|&|-|\(|\\|\/|\.' The following lines show that my query is incomplete. Warning: The word "*Khan" is... (1 Reply)
Discussion started by: shantanuo
1 Replies

2. UNIX for Dummies Questions & Answers

Remove directory that has special Characters

Hi All, I have a script written that creates a new directory within the shell program and if a parameter isn't passed in, it creates a strange directory name by mistake. So I have a directory like "-_12" and I am unable to remove it. I tried removing it using double quote and many others. I have... (12 Replies)
Discussion started by: datherriault
12 Replies

3. Shell Programming and Scripting

Remove special characters from string

Hi there, I'd like to write a script that removes any set of character from any string. The first argument would be the string, the second argument would be the characters to remove. For example: $ myscript "My name's Santiago. What's yours?" "atu" My nme's Snigo. Wh's yors? I wrote the... (11 Replies)
Discussion started by: chebarbudo
11 Replies

4. UNIX for Dummies Questions & Answers

How to Remove Special Characters

Dear Members, We have a file which contains some special characters. I need to replace these special character by a new line character(\n). The Special character is \x85. I am not sure what this character means and how we can remove it. Any inputs are greatly appreciated. Thanks... (5 Replies)
Discussion started by: sandeep_1105
5 Replies

5. UNIX for Dummies Questions & Answers

Files with special characters - how to remove

Hi, I have a directory that has a file which contained special characters in the filename. Can someone please advise how to remove the file, preferably with a rm -i ? Thanks in advance. Listing is as below: {oracle}> ls -1b bplog.bkup.001 bplog.bkup.002 bplog.bkup.003 bplog.bkup.004... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. Shell Programming and Scripting

remove special characters

hello all I am writing a perl code and i wish to remove the special characters for text. I wish to remove all extended ascii characters. If the list of special characters is huge, how can i do this using substitute command s/specialcharacters/null/g I really want to code like... (3 Replies)
Discussion started by: vasuarjula
3 Replies

7. Shell Programming and Scripting

Remove string between two special characters

Hi All, I have a variable like AVAIL="\ BACK:bkpstg:testdb3.iad.expertcity.com:backtest|\ #AUTH:authstg:testdb3.iad.expertcity.com:authiapd|\ TEST:authstg:testdb3.iad.expertcity.com:authiapd|\ " What I want to do here is that If a find # before any entry, remove the entire string... (5 Replies)
Discussion started by: engineermayur
5 Replies

8. Shell Programming and Scripting

Remove the special characters from field

Hi, In source data few of columns are having special charates(like *) due to this i am not able to display the data into flat file.it's displaying the some of junk data into the flat file. source dataExample: Address1="XDERFTG * HYJUYTG" how to remove the special charates in a string (2 Replies)
Discussion started by: koti_rama
2 Replies

9. Shell Programming and Scripting

Sed - remove special characters

Hi, I have a file with this line, it's always in the first line: I want to remove these special characters: ´╗┐ file1 ´╗┐\\bar\c$\test2\;3.348.118 Bytes;160 ;3 \\bar\c$\test\;35 Bytes;2 ;1 I want the same file to be only \\bar\c$\test2\;3.348.118 Bytes;160 ;3 \\bar\c$\test\;35... (4 Replies)
Discussion started by: nakaedu
4 Replies

10. Shell Programming and Scripting

How to remove special characters?

Hi Gurus, I have file which contains some unicode charachator like "ü". I want to replace it with some charactors. I searched in internet and got command sed "s/ü/-/g", but I don't know how to type ü in unix command line. Please help me for this one. Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies
Bio::Tools::OddCodes(3pm)				User Contributed Perl Documentation				 Bio::Tools::OddCodes(3pm)

NAME
Bio::Tools::OddCodes - Object holding alternative alphabet coding for one protein sequence SYNOPSIS
# Take a sequence object from eg, an inputstream, and creates an # object for the purposes of rewriting that sequence in another # alphabet. These are abbreviated amino acid sequence alphabets, # designed to simplify the statistical aspects of analysing protein # sequences, by reducing the combinatorial explosion of the # 20-letter alphabet. These abbreviated alphabets range in size # from 2 to 8. # Creating the OddCodes object, eg: my $inputstream = Bio::SeqIO->new( '-file' => "seqfile", '-format' => 'Fasta'); my $seqobj = $inputstream->next_seq(); my $oddcode_obj = Bio::Tools::Oddcodes->new(-seq => $seqobj); # or: my $seqobj = Bio::PrimarySeq->new (-seq=>'[cut and paste a sequence here]', -alphabet => 'protein', -id => 'test'); my $oddcode_obj = Bio::Tools::OddCodes->new(-seq => $seqobj); # do the alternative coding, returning the answer as a reference to # a string my $output = $oddcode_obj->structural(); my $output = $oddcode_obj->chemical(); my $output = $oddcode_obj->functional(); my $output = $oddcode_obj->charge(); my $output = $oddcode_obj->hydrophobic(); my $output = $oddcode_obj->Dayhoff(); my $output = $oddcode_obj->Sneath(); my $output = $oddcode_obj->Stanfel(); # display sequence in new form, eg: my $new_coding = $$output; print " $new_coding"; DESCRIPTION
Bio::Tools::Oddcodes is a welterweight object for rewriting a protein sequence in an alternative alphabet. Eight of these are provided, ranging from the the 2-letter hydrophobic alphabet, to the 8-letter chemical alphabet. These are useful for the statistical analysis of protein sequences since they can partially avoid the combinatorial explosion produced by the full 20-letter alphabet (eg. 400 dimers, 8000 trimers etc.) The objects will print out a warning if the input sequence is not a protein. If you know what you are doing, you can silence the warning by setting verbose() to a negative value. See SYNOPSIS above for object creation code. REFERENCES
Stanfel LE(1996) A new approach to clustering the amino acids. J. theor. Biol. 183, 195-205. Karlin S, Ost F and Blaisdell BE(1989) Patterns in DNA and amino acid sequences and their statistical significance. Chapter 6 of: Mathematical Methods for DNA Sequences. Waterman MS (ed.) CRC Press, Boca Raton , FL. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR
Derek Gatherer APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ structural Title : structural Usage : $output = $oddcode_obj->structural(); Function: turns amino acid sequence into 3-letter structural alphabet : A (ambivalent), E (external), I (internal) Example : a sequence ACDEFGH will become AAEEIAE Returns : Reference to the new sequence string Args : none functional Title : functional Usage : $output = $oddcode_obj->functional(); Function: turns amino acid sequence into 4-letter functional alphabet : A (acidic), C (basic), H (hydrophobic), P (polar) Example : a sequence ACDEFGH will become HPAAHHC Returns : Reference to the new sequence string Args : none hydrophobic Title : hydrophobic Usage : $output = $oddcode_obj->hydrophobic(); Function: turns amino acid sequence into 2-letter hydrophobicity alphabet : O (hydrophobic), I (hydrophilic) Example : a sequence ACDEFGH will become OIIIOII Returns : Reference to the new sequence string Args : none Dayhoff Title : Dayhoff Usage : $output = $oddcode_obj->Dayhoff(); Function: turns amino acid sequence into 6-letter Dayhoff alphabet Example : a sequence ACDEFGH will become CADDGCE : A (=C), C (=AGPST), D (=DENQ), : E (=HKR), F (=ILMV), G (=FWY) Returns : Reference to the new sequence string Args : none Sneath Title : Sneath Usage : $output = $oddcode_obj->Sneath(); Function: turns amino acid sequence into 7-letter Sneath alphabet Example : a sequence ACDEFGH will become CEFFHCF : A (=ILV), C (=AGP), D (=MNQ), E (=CST), : F (=DE), G (=KR), H (=FHWY) Returns : Reference to the new sequence string Args : none Stanfel Title : Stanfel Usage : $output = $oddcode_obj->Stanfel(); Function: turns amino acid sequence into 4-letter Stanfel alphabet Example : a sequence ACDEFGH will become AACCDAE : A (=ACGILMPSTV), C (=DENQ), D (=FWY), E (=HKR) Returns : Reference to the new sequence string Args : none chemical Title : chemical Usage : $output = $oddcode_obj->chemical(); Function: turns amino acid sequence into 8-letter chemical alphabet : A (acidic), L (aliphatic), M (amide), R (aromatic) : C (basic), H (hydroxyl), I (imino), S (sulphur) Example : a sequence ACDEFGH will become LSAARAC Returns : Reference to the new sequence string Args : none charge Title : charge Usage : $output = $oddcode_obj->charge(); Function: turns amino acid sequence into 3-letter charge alphabet Example : a sequence ACDEFGH will become NNAANNC : A (negative; NOT anode), C (positive; NOT cathode), N (neutral) Returns : Reference to the new sequence string Args : none perl v5.14.2 2012-03-02 Bio::Tools::OddCodes(3pm)
All times are GMT -4. The time now is 01:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy