Course Solutions Uncategorized (Solved) : Assume Text File Named Texttxt Contains Like Nzfnbk010000551 Halorientalis Regularis Strai Q35571166 . . . .

(Solved) : Assume Text File Named Texttxt Contains Like Nzfnbk010000551 Halorientalis Regularis Strai Q35571166 . . . .

 

Assume that I have a text file named “text.txt” which hascontains like this:

>NZ_FNBK01000055.1 Halorientalis regularis strain IBRC-M10760, whole genome shotgun sequence
CCCTCCTCCAGGGCGGCCATGCCCCAGCCGTCGATCTCGTGGCCGTCGTCTCCGGTGACGACCTCGCGCAGCGTGGCGAC
GGCGTCCTCGATCCGGTCGCGGCTCTCTGCACCCGACCGGCCGAACGGATAGGTGGTCACACTGCCGACCGCGTGCTGAT
CCAGCGCTTCCTCAGCGCGCTCGACGTCGGTCGGTTCGTCGGGTTCGAAGCCGCGGAGGCCCCAGTCGTCGGGCATGTTG
>NZ_FNBK01000053.1 Halorientalis regularis strain IBRC-M 10760,whole genome shotgun sequence
GCGGTGCGGTTCGGGAAGCCTCGCCGTCGTCGGGCTACGCCCGACTGCTTGAGGGAGCTTCGCTCCCTCTCCGTTCACGG
CGAGGAGGAGGTCACGCCGTCACCAAGCGCGGCCGCCGGGAAATCGAGGCCCGGCGCGAGTGGGAACAGCAATACTTCGA
CTGGTAGGCACCCGCCCAGCCAGCCGCACCCTGGCCGCGATCCGACCGCTGTCGTGGAAACAGGCGTCCACACGCGACGA

So, how can I read the data from the above file that:

1. Extract the genome name from a line in the file that beginswith a greater than

sign; everything following the greater-than sign (and excludingthe newline at the

end of the line) is the name, so for the line

>NZ_FOJA01000002.1 Halobacterium jilantaiense strain CGMCC1.5337, whole genome shotgun sequence

the name would be

NZ_FOJA01000001.1 Halobacterium jilantaiense strain CGMCC1.5337, whole genome shotgun sequence

2. Extract the sequence of DNA bases

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Linux Systems Keep User Account Information Passwd File Encrypted Password Shadow File Pas Q31001132 . . . .(Solved) : Linux Systems Keep User Account Information Passwd File Encrypted Password Shadow File Pas Q31001132 . . . .

<p>Linux systems keep user account information in the passwd fileand the encrypted password in the shadow file. The passwd filecontaining account information might look like this:smithj:x:1001:1001:John Smith:/home/smithj:/bin/bash The shadowfile containing