fredkneeland / DNA_Analysis

Java code for analyzing human dna
GNU General Public License v3.0
1 stars 3 forks source link

Script to remove 'N' from DNA strings #6

Open fredkneeland opened 6 years ago

fredkneeland commented 6 years ago

In the DNA strings there are places where the scientists were unable to discover what letter a dna base pair was so they put in an N.

For the purposes of this experiment a script should be written that can take a file and remove all 'N' and print it out to an output file.

i.e.

$ ./remove_ns dna_chr_1.txt dna_chr_1_no_ns.txt

ghost commented 6 years ago

Any specific language you want this done in? I'm assuming bash.

fredkneeland commented 6 years ago

@Splinxyy bash would be perfect

ghost commented 6 years ago

@fredkneeland Do you want it to replace N with anything, or just leave a space there?

fredkneeland commented 6 years ago

No, there should be nothing there i.e. 'ANTGNC' => 'ATGC'

ghost commented 6 years ago

Alrighty.

ghost commented 6 years ago

Sorry for the delay, it is done now. Will send a PR