Trim transcript IDs from FASTA file
In rule trim_fasta of Sankefile where the IDs are trimmed with the first white space. Run rule with bash command insead of validation_fasta.pyscript, it's slow.
e.g.
awk -F" " '/^>/{print $1; next}1' fasta.file > output #With this command we could specify the -F separator we want as a parameter in config.
awk '{if ($1 ~ /^>/) {print $1} else {print $0}}' fasta.file > output
Edited by BIOPZ-Iborra de Toledo Paula