Last active
August 15, 2020 16:26
-
-
Save ag1805x/26ae59c2495f747b5fa7a4156be66599 to your computer and use it in GitHub Desktop.
Extract mature and precursor miRNA list from miRBase gff3 file. Can be used for inter-conversion
This file contains 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
# Extract mature and precursor miRNA list from miRBase gff3 file | |
# Can be used for interconversion | |
grep -v '#' hsa.gff3 | grep -w "miRNA" | cut -f9 > temp | |
paste <(cut -d ';' -f1 temp | cut -d '=' -f1) <(cut -d ';' -f2 temp | cut -d '=' -f1) <(cut -d ';' -f3 temp | cut -d '=' -f1) <(cut -d ';' -f4 temp | cut -d '=' -f1) | head -n1 >> miRbaseIDs.tsv | |
paste <(cut -d ';' -f1 temp | cut -d '=' -f2) <(cut -d ';' -f2 temp | cut -d '=' -f2) <(cut -d ';' -f3 temp | cut -d '=' -f2) <(cut -d ';' -f4 temp | cut -d '=' -f2) >> miRbaseIDs.tsv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment