.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "CONVERT-SAM-FOR-RSEM 1" .TH CONVERT-SAM-FOR-RSEM 1 2024-03-24 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME convert\-sam\-for\-rsem \- Make a RSEM compatible BAM file. .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& convert\-sam\-for\-rsem [options] output_file_name .Ve .SH ARGUMENTS .IX Header "ARGUMENTS" .IP \fBinput.sam/input.bam/input.cram\fR 4 .IX Item "input.sam/input.bam/input.cram" The SAM/BAM/CRAM file generated by user's aligner. We require this file contains the header section. .IP \fBoutput_file_name\fR 4 .IX Item "output_file_name" The output name for the converted file. 'convert\-sam\-for\-rsem' will output a BAM with the name 'output_file_name.bam'. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-p/\-\-num\-threads\fR " 4 .IX Item "-p/--num-threads " Set the number of threads to be used for converting. (Default: 1) .IP "\fB\-\-memory\-per\-thread\fR " 4 .IX Item "--memory-per-thread " Set the maximum allowable memory per thread. represents the memory and accepts suffices 'K/M/G'. (Default: 1G) .IP \fB\-h/\-\-help\fR 4 .IX Item "-h/--help" Show help information. .SH DESCRIPTION .IX Header "DESCRIPTION" This program converts the SAM/BAM/CRAM file generated by user's aligner into a BAM file which RSEM can process. However, users should make sure their aligners use 'reference_name.idx.fa' generated by 'rsem\-prepare\-reference' as their references and output header sections. After the conversion, this program will call 'rsem\-sam\-validator' to validate the resulting BAM file. .PP Note: You do not need to run this script if `rsem\-sam\-validator' reports that your SAM/BAM/CRAM file is valid. .SH EXAMPLES .IX Header "EXAMPLES" Suppose input is set to 'input.sam' and output file name is "output" .PP .Vb 1 \& convert\-sam\-for\-rsem input.sam output .Ve .PP We will get a file called 'output.bam' as output.