fasta_header_to_id | R Documentation |
the first set of non-whitespace characters on the row is assumed to be the protein ID. the leading '>' is not included (if present).
fasta_header_to_id(x)
x |
array of fasta headers |
this regex should be robust for all sorts of input, including those not following official standards. should be ">proteinid whatever". But if additional whitespace is provided at the start we are robust to this.
e.g. these should all yield 'pid' as the protein ID; fasta_header_to_id(c(" > pid description", "> pid description", " pid description", "pid description"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.