Subsample single-end sequences without replacement.
Generate a random subsample of single-end sequences containing
approximately the fraction of input sequences specified by the fraction
parameter. The number of output samples will always be equal to the number
of input samples, even if some of those samples contain no sequences after
subsampling.
Parameters
- sequences : SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
- The demultiplexed sequences to be subsampled.
- fraction : Float % Range(0, 1, inclusive_start=False)
- The fraction of sequences to retain in subsample.
Returns
- subsampled_sequences : SampleData[SequencesWithQuality]
- The subsampled sequences.