String containing the name of a file to be written. The file extension is automatically added depending on the type of data the object contains. If you provide the extension, the function checks the consistency between the provided extension and the data format of the object. The file name can be prefixed by a file path. If the path is missing, the file is written to the same folder where the source file is located or to the current folder if the data is in memory.
Specify optional comma-separated pairs of
Name is the argument
Value is the corresponding
Name must appear
inside single quotes (
You can specify several name and value pair
arguments in any order as
String specifying the type of file format. Available formats
Boolean indicator specifying whether an existing file can be
overwritten. Default is
Note: When you have an object that contains a subset of information from the source file, use this method to save the object in a separate file. Having a compact file only for the object can be more efficient and helpful in processing data or sharing among collaborators.
Write the Contents of BioRead Object to a File
BioRead object from a FASTQ file.
BRObj = BioRead('SRR005164_1_50.fastq');
Extract the first 10 elements from
store them in a new
subsetBRObj = getSubset(BRObj, [1:10]);
Write the contents of the subset object
a file named
subsetBRObj.fastq in a
(or any other folder) on a local
C (or any other)