Subsequences = getSubsequence(BioObj, Subset, Positions)
Subsequences = getSubsequence(BioObj, Subset, Positions) returns Subsequences, a cell array of strings containing the letter representations of partial nucleotide sequences from an object. getSubsequence returns sequence strings for only object elements specified by Subset and for only sequence positions specified by Positions.
One of the following to specify a subset of the elements in BioObj:
One of the following to specify a subset of positions in a sequence:
Cell array of strings containing the partial sequences specified by Subset and Positions in BioObj.
Retrieve subsequences from different elements of a BioRead object:
% Construct a BioRead object from a FASTQ file BRObj = BioRead('SRR005164_1_50.fastq'); % Retrieve the first five positions of the first three sequences in % the object getSubsequence(BRObj, 1:3, 1:5) % Retrieve the first five positions of the sequence with a header % of SRR005164.3 getSubsequence(BRObj, 'SRR005164.3', 1:5)