rename.SRA.files {ORFik} | R Documentation |
Rename SRA files from metadata
rename.SRA.files(files, new_names)
files |
a character vector, with full path to all the files |
new_names |
a character vector of new names or a data.table with metadata to use to rename (usually from SRA metadata). Priority of renaming from the metadata is to check for unique names in the LibraryName column, then the sample_title column if no valid names in LibraryName. If found and still duplicates, will add "_rep1", "_rep2" to make them unique. Paired end data will get a extension of _p1 and _p2. If no valid names, will not rename, that is keep the SRR numbers, you then can manually rename files to something more meaningful. |
a character vector of new file names
Other sra:
download.SRA.metadata()
,
download.SRA()
,
download.ebi()
,
install.sratoolkit()