Extract part of a fasta sequences with ID
|
Extracting fasta sequences based on position Written By Pierre Lindenbaum
Example FASTA file
Example FASTA file
>AT1G01250
NNEPTATASAVKSCGGGGKETSSSTTRHPVYHGVRKRRWGKWVSEIREPRKKSRIWLGSFPVPEMAAKAYDVAAFCLKGRKAQLNFPEEIEDLPRPSTCTPRDIQVAAAKAANAVKIIKMGDDDVAGIDDGDDFWEGIELPELMMSGGGWSPEPFVAGDDATWLVDGDLYQYQFMACL
>AT1G03800
MTTEKENVTTAVAVKDGGEKSKEVSDKGVKKRKNVTKALAVNDGGEKSKEVRYRGVRRRPWGRYAAEIRDPVKKKRVWLGSFNTGEEAARAYDSAAIRFRGSKATTNFPLIGYYGISSATPVNNNLSETVSDGNANLPLVGDDGNALASPVNNTLSETARDGTLPSDCHDMLSPGVAEAVAGFFLDLPEVIALKEELDRVCPDQFESIDMGLTIGPQTAVEEPETSSAVDCKLRMEPDLDLNASP
Example ID file
AT1G01250 1 10
AT1G03800 7 16
Extract Part of a FASTA Sequences with Position by python script HERE
Related Posts
|
Was This Post Useful? Add This To Del.icio.us Share on Facebook StumbleUpon This Add to Technorati Share on Twitter |
Subscribe to:
Post Comments (Atom)
This comment has been removed by a blog administrator.
ReplyDeleteTraceback (most recent call last):
ReplyDeleteFile "domainseq.py", line 31, in
print(fasta_dict[line[0]][s:e])
KeyError: 'NW_019014662.1'
can you help me