Created
May 24, 2015 02:27
-
-
Save danielecook/3cda0c5e56c16f37afc8 to your computer and use it in GitHub Desktop.
Fetch terminal genes C. elegans
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
end_dist=30000 | |
chrom_I=15072434 | |
chrom_II=15279421 | |
chrom_III=13783801 | |
chrom_IV=17493829 | |
chrom_V=20924180 | |
chrom_X=17718942 | |
tabix gene.gff.gz I:1-$end_dist > terminal_genes.txt | |
tabix gene.gff.gz II:1-$end_dist >> terminal_genes.txt | |
tabix gene.gff.gz III:1-$end_dist >> terminal_genes.txt | |
tabix gene.gff.gz IV:1-$end_dist >> terminal_genes.txt | |
tabix gene.gff.gz V:1-$end_dist >> terminal_genes.txt | |
tabix gene.gff.gz X:1-$end_dist >> terminal_genes.txt | |
tabix gene.gff.gz I:`expr $chrom_I - $end_dist`-$chrom_I >> terminal_genes.txt | |
tabix gene.gff.gz I:`expr $chrom_II - $end_dist`-$chrom_II >> terminal_genes.txt | |
tabix gene.gff.gz I:`expr $chrom_III - $end_dist`-$chrom_III >> terminal_genes.txt | |
tabix gene.gff.gz I:`expr $chrom_IV - $end_dist`-$chrom_IV >> terminal_genes.txt | |
tabix gene.gff.gz I:`expr $chrom_V - $end_dist`-$chrom_V >> terminal_genes.txt | |
tabix gene.gff.gz I:`expr $chrom_X - $end_dist`-$chrom_X >> terminal_genes.txt | |
cat terminal_genes.txt | grep 'Gene' | cut -f 9 | egrep -o 'Alias=([^,]+)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment