Skip to content

Instantly share code, notes, and snippets.

@johnsolk
Created August 29, 2016 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnsolk/56f704e7af741b1a6880df1a714197ce to your computer and use it in GitHub Desktop.
Save johnsolk/56f704e7af741b1a6880df1a714197ce to your computer and use it in GitHub Desktop.
formatting transcriptome annotations for merging with lists of differentially expressed lists contig ID
sed 's_|_-_g' uniprot_sprot.blastx.outfmt6.sig > uniprot_sprot.blastx.outfmt6.fixed.sig
cut -f 1,2,17 uniprot_sprot.blastx.outfmt6.fixed.sig > uniprot_sprot.blastx.outfmt6.fixed.genes.sig
touch uniprot_P_ast_annotations_mansour_hits100DE.tab
for i in $(cut -f 2 P_ast_RNAseq_25pptv35ppt_top100DE.tab); do grep ${i/_/-} uniprot_sprot.blastx.outfmt6.fixed.genes.sig >> uniprot_P_ast_annotations_mansour_hits100DE.tab; done
sed 's/\-/\_/1' uniprot_P_ast_annotations_mansour_hits100DE.tab > uniprot_P_ast_annotations_mansour_hits100DE.fixed.tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment