RSEM-SIMULATE-READS(1)
π RSEM-SIMULATE-READS π
okay bestie, gather round, because this little icon of a command is from the User Commands crew and it is literally here to Simulate RNA-Seq data ("reads") for a given model and a RSEM reference transcript collection. no cap. π§¬β¨
β¨ SYNOPSIS β¨
rsem-simulate-reads reference_name estimated_model_file estimated_isoform_results theta0 N output_name [--seed seed] [-q]
πΈ DESCRIPTION πΈ
π Parameters π
reference_nameβ the actual name of your RSEM reference, and yes she should already exist, because'rsem-prepare-reference'is the one who made her πestimated_model_fileβ this file is the whole vibe-setter, fr fr: it describes how the RNA-Seq reads will be sequenced given the expression levels. It decides what kind of reads get simulated (single-end or paired-end, with or without quality score) and it's packing the parameters for fragment length distribution, read start position distribution, sequencing error models, etc. Normally you learn it from real data with'rsem-calculate-expression', and you'll find it hanging out under the'sample_name.stat'folder with the name'sample_name.model'π«Άestimated_isoform_resultsβ this one holds expression levels for every isoform recorded in the reference. Learn it from real data via'rsem-calculate-expression'; the file you want is'sample_name.isoforms.results'. Wanna simulate from a user-designed expression profile? then start from a learned'sample_name.isoforms.results'file and only modify the'TPM'column β the simulator only reads the'TPM'column, but keeping the file format the same is required, periodt. And if your RSEM references were built aware of allele-specific transcripts, use'sample_name.alleles.results'instead πtheta0β this parameter sets the fraction of reads coming from background "noise" (as opposed to from a transcript). It can also be estimated from real data with'rsem-calculate-expression', and you'll spot it as the first value of the third line of'sample_name.stat/sample_name.theta'πNβ the total number of reads to be simulated. If'rsem-calculate-expression'got run on a real data set, the total number of reads shows up as the 4th number of the first line of'sample_name.stat/sample_name.cnt'π’output_nameβ prefix for all output files. that's her, that's the name π--seed seedβ set the seed for the random number generator used in simulation. The seed should be a 32-bit unsigned integer β-qβ set it and she stops outputting intermediate information. quiet queen behavior π€«
π Outputs π
output_name.sim.isoforms.results,output_name.sim.genes.resultsβ expression levels estimated by counting where each simulated read comes fromoutput_name.sim.alleles.resultsβ allele-specific expression levels estimated by counting where each simulated read comes from
and then the sequence files, depending on the flavor:
output_name.faif single-end without quality scoreoutput_name.fqif single-end with quality scoreoutput_name_1.fa&output_name_2.faif paired-end without quality scoreoutput_name_1.fq&output_name_2.fqif paired-end with quality score
π₯ Format of the header line π₯
Every simulated read's header line encodes where it comes from, and the format is:
{>/@}_rid_dir_sid_pos[_insertL]
breaking it all the way down:
{>/@}β either'>'or'@'must appear.'>'appears if FASTA files are generated and'@'appears if FASTQ files are generatedridβ the simulated read's index, numbered from 0dirβ the direction of the simulated read.0refers to forward strand ('+') and1refers to reverse strand ('-')sidβ which transcript this read is simulated from. It ranges between 0 and M, where M is the total number of transcripts. Ifsid=0, the read is simulated from the background noise. Otherwise, the read is simulated from a transcript with indexsid. Transcriptsid's transcript name can be found in the'transcript_id'column of the'sample_name.isoforms.results'file (at linesid + 1, line 1 is for column names)posβ the start position of the simulated read in stranddirof transcriptsid. It is numbered from 0insertLβ only appears for paired-end reads. It gives the insert length of the simulated read
π¦ Example π¦
say we wanna simulate 50 million single-end reads with quality scores, and use the parameters learned from [Example](#example). also we're setting theta0 as 0.2 and output_name as 'simulated_reads'. the command is:
rsem-simulate-reads /ref/mouse_125 mmliver_single_quals.stat/mmliver_single_quals.model mmliver_single_quals.isoforms.results 0.2 50000000 simulated_reads
lowkey obsessed with how much this one command can do. go forth and simulate, bestie π
this has been rsem-simulate-reads, version 1.3.3+dfsg, dated April 2024 β and that's the whole page, slay πππ¦β¨
π¦ where this page comes from
- ubuntu noble: rsem 1.3.3+dfsg-3build1 Β· GPL-3.0-only
- ubuntu resolute: rsem 1.3.3+dfsg-3build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms