Skip to content

Instantly share code, notes, and snippets.

@sashaphanes
sashaphanes / fasta.maker.pl
Last active August 29, 2015 13:57
takes a list of protein accession numbers with SNP information from STDIN, trims the SNPs, and generates a .fasta containing amino acid sequences for each accession
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
# pipe STDIN to a loop that
# a) removes the strings after each accession number
# b) puts the remaining accession numbers from each line into an array
# $IN = \*STDIN;