Entering edit mode
3.7 years ago
Inayat
•
0
I have txt file containing several of these header lines
>lcl|NC_001133.9_cds_NP_009332.1_1 [gene=PAU8] [locus_tag=YAL068C] [db_xref=SGD:S000002142,GeneID:851229] [protein=seripauperin PAU8] [protein_id=NP_009332.1] [location=complement(1807..2169)] [gbkey=CDS]
I want to read specific values 1807 and 2169 mentioned in "location". I have tried to use split() and strip command in python but it doesn't work as expected. Can you please suggest the way how to do this? Any kind of help will be appreciated.
Thank you