view LINKYX_reformat_trinity_header.sh @ 27:91f05fd5f5f2

toolshed perl, older 091 commit, two occure
author biomonika <biomonika@psu.edu>
date Fri, 12 Sep 2014 00:34:58 -0400
parents 695d28139f3e
children
line wrap: on
line source

#!/bin/bash

results=$1 #reformatted fasta sequence written here
trinity_fasta=${2}

perl -pe 's/(>[\S]+).+/$1/' $trinity_fasta >$results
samtools faidx $results