It parses the FASTA header when called on a XStringSet object using the sep and id_position arguments.
1 2 3 4 5 6 7 | get_patient_ids(x, sep = "\\|", id_position = 1)
## S4 method for signature 'Patient_HLA'
get_patient_ids(x)
## S4 method for signature 'AAStringSet'
get_patient_ids(x, sep = "\\|", id_position = 1)
|
x |
The data structure to interrogate |
sep |
The symbol used to separate elements in the sequence names |
id_position |
After the sequence name has been split on the 'sep' character, which element of the resulting vector contains the patient id? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.