subSeqs = getSubsequence(object,subset,positions)
returns the partial sequences subSeqs for sequence positions
specified by positions from only object elements specified by
subset.
Retrieve the first five positions of those sequences.
seqs3 = getSubsequence(br,[1 3 5],[1:5])
seqs3 = 3×1 cell
{'CACTA'}
{'AGTGG'}
{'GCTCA'}
You can use a header to get the corresponding sequences with that header. If multiple sequences have the same header, the function returns all of those sequences.
Get the first five positions of the sequences with the header B7_591:4:96:693:509.
Object containing the read data, specified as a BioRead or BioMap object.
Example: bioreadObj
Subset of elements in the object, specified as a vector of positive integers, logical vector,
string vector, or cell array of character vectors containing valid sequence
headers.
Example: [1 3]
Tip
When you use a sequence header (or a cell array of headers) for subset, a
repeated header specifies all elements with that header.
Sequence positions, specified as a vector of positive integers or logical
vector. The last position must be within the range of positions for each
sequence specified by subset.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.