grep mir ../ucsc.gtf|awk '{print $1"\t"$4"\t"$5"\t"$10"\t"$6"\t"$7}' > miRNAcoor.bed
sort -k1,1b -k2,2n miRNAcoor.bed > miRNAcoor.bed.s

perl makeBed.pl danRer7/danRer7.fa danRer7 > danRer7/danRer7.bed

bam2x getseq -i danRer7/miRNAcoor.bed -o miRNA/miRNA.fa -m seq -g ../danRer7.2bit -b 6
