rpf_Geneplot¶
rpf_Geneplot draws per-gene RPF or RNA-seq density profiles from a merged density table.
Function¶
Use this command to visualize the nucleotide-level density profile of one gene or a list of genes across samples. The command extracts the selected gene records from a merged density table, converts frame-specific density columns into a continuous nucleotide-level profile, and writes one plot per gene.
Input¶
The input file should be a merged RPF/RNA density table with annotation columns and frame-specific sample columns, for example:
Gene IDs supplied with -g or -l should match the values in the name column.
Parameters¶
| Parameter | Required | Meaning |
|---|---|---|
-r |
yes | Input merged RPF/RNA density file in TXT/TSV format. |
-g |
no | Single gene/transcript ID to plot. Mutually exclusive with -l. |
-l |
no | Gene/transcript ID list file. Each line should contain one ID. Mutually exclusive with -g. |
--log |
no | Set y-axis to log scale. Allowed values: 2 or 10. Default: no log scaling. |
At least one of -g or -l should be provided.
Output¶
For each gene/transcript, the command writes two plot files in the current working directory:
The x-axis is nucleotide position relative to the selected transcript region, and the y-axis shows normalized density used by the plotting function.
Examples¶
Draw the density profile of one gene:
Draw one profile for each gene in a list:
Use log2 scaling on the y-axis:
Use log10 scaling on the y-axis:
Notes¶
- The command does not take an output prefix; plot file names are generated from gene/transcript IDs.
- The previous example using
-bshould be replaced by-r, which is the actual input-density argument. - If a gene/transcript ID is not found in the input table, the command reports it and skips that record.
- Very long genes or many samples can generate large figures. Run the command on a small gene list first when checking a new dataset.