PSMtab2SAM: Generate SAM files from PSMs.

Description Usage Arguments Value Author(s) Examples

View source: R/PSMtab2SAM.R

Description

Generate SAM files from confident peptide-spectrum-matches (PSMs).

Usage

1
2
PSMtab2SAM(passedPSM, XScolumn = "mvh", exon_anno, proteinseq, procodingseq,
    ...)

Arguments

passedPSM

a data frame of PSMs passed FDR.

XScolumn

specify the column which represents the matching score.

exon_anno

a dataframe of exon annotations.

proteinseq

a dataframe containing protein ids and protein sequences.

procodingseq

a data frame cotaining coding sequence for each protein.

...

additional arguments

Value

a dataframe containing

Author(s)

Xiaojing Wang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
load(system.file("extdata/GENCODE", "exon_anno.RData", package="proBAMr"))
load(system.file("extdata/GENCODE", "proseq.RData", package="proBAMr"))
load(system.file("extdata/GENCODE", "procodingseq.RData",
    package="proBAMr"))
options(stringsAsFactors=FALSE)
passedPSM <- read.table(system.file("extdata", "passedPSM.tab",
    package="proBAMr"), sep='\t', header=TRUE)
SAM <- PSMtab2SAM(passedPSM, XScolumn='mvh', exon, proteinseq,
    procodingseq)
write.table(SAM, file=paste(tempdir(), '/test.sam', sep=''),
            sep='\t', quote=FALSE, row.names=FALSE, col.names=FALSE)

proBAMr documentation built on Nov. 8, 2020, 8:05 p.m.