Last active
October 12, 2017 17:27
-
-
Save johnsolk/3958c91fe39c92e51cb4544d0b6b8f24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From within a py3 virtualenv | |
# or | |
# sudo pip install screed | |
# source ~/bin/py3/bin/activate | |
import screed | |
with open("table.txt",'w') as fq: | |
for r in screed.open('trinity.nema.full.fasta'): | |
fq.write(r.name+"\n") |
Author
johnsolk
commented
Oct 12, 2017
head nema_transcript_gene_id.txt
Output:
comp12_c0_seq1 comp12
comp16_c0_seq1 comp16
comp53_c0_seq1 comp53
comp53_c1_seq1 comp53
comp64_c0_seq1 comp64
comp67_c0_seq1 comp67
comp86_c0_seq1 comp86
comp90_c0_seq1 comp90
comp100_c0_seq1 comp100
comp104_c0_seq1 comp104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment