I have a text file with something like this in it:
>ENSG00321 Gene_ch19 . . . .
AATAGCGGTTAACATATTAATTAAACTAATGTATAGATATTATCCGCTTCCAGATTTATTATTTTGTAAA
ATAGGCACAGTTCTTATCTGGTGTCACTTTATGCTTTTTTAATAGACGCCCAGCTCTACTCATGGCCAAG
.
.
>ENSG00531 Gene_ch5 . . . .
AAAGAAGCGTAGGCCCGCCATGCAGCGTAAAAAGGATAATGCGGAGCAGCGGTCCCCAAAGACTGATTTA
TCAAAACTGTTTTCGCAGCAATTAACACACCCACCGACCAGTAACACCGCTGCAAGCAAGGCCACGGGCA
.
.
I have some headers like (ENSG00321) too.
I want to search in text files with header and then get characters(AGCT, characters line start from below of the header line) from 5 to 100 of that header and copy to a new text file.
How can I programming this? In MATLAB or PERL or C++.
vahiddani 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.