I am trying to combine sffinfo with a code that can get rid of the extra information in the ID line and at the same time remove the new line at the end of each line. Originally, I was hoping there was an option in sffinfo that could do exactly what I needed. Not being an scripter makes the task of finding the right code a little more challenging.
Write a little perl script to remove the newline at the end of the sequence lines.
awk '/^>/ {
print (buff ? buff RS : null) $0
buff = null; next
}
{
buff = buff ? buff FS $0 : $0
}
END { print buff }' infile
print (buff ? buff RS : null) $0
buff = null; next
}
{
buff = buff ? buff FS $0 : $0
}
END { print buff }' infile
Leave a comment: