get_cdd: Query the Conserved Domain Database.

Description Usage Arguments Value Note Source References See Also Examples

View source: R/get_cdd.R

Description

Conserved Domain Database is a protein annotation resource that consists of a collection of well-annotated multiple sequence alignment models for ancient domains and full-length proteins.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
get_cdd(data, ...)

## S3 method for class 'character'
get_cdd(
  data,
  output = c("short", "standard", "full"),
  splitter = 100L,
  progress = FALSE,
  evalue = NULL,
  bitscore = NULL,
  ...
)

## S3 method for class 'data.frame'
get_cdd(data, sequence, id, ...)

## S3 method for class 'list'
get_cdd(data, ...)

## Default S3 method:
get_cdd(data = NULL, sequence, id, ...)

## S3 method for class 'AAStringSet'
get_cdd(data, ...)

Arguments

data

A data frame with protein amino acid sequences as strings in one column and corresponding id's in another. Alternatively a path to a .fasta file with protein sequences. Alternatively a list with elements of class SeqFastaAA resulting from read.fasta call. Alternatively an AAStringSet object. Should be left blank if vectors are provided to sequence and id arguments.

...

currently no additional arguments are accepted apart the ones documented bellow.

output

One of "short", "standard" or "full". Default is "short". "Short" returns the highest scoring hit, for each region of the query sequence; "standard" returns the best-scoring hit from each source database, for each region of the query sequence; "full" returns the complete set of hits.

splitter

An integer indicating the number of sequences to be in each .fasta file that is to be sent to the server. Default is 100. Change only in case of a server side error. Accepted values are in range of 1 to 4000.

progress

Boolean, whether to show the progress bar, at default set to FALSE.

evalue

Numeric, all sequences with E-value lower or equal to this value will be retained in the function output. Used to filter out low similarity matches. If set some queried sequences might be discarded from the output. Suggested values: 1e-2 - 1e-5.

bitscore

Numeric, all sequences with bitscore greater or equal to this value will be retained in the function output. Used to filter out low similarity. If set some queried sequences might be discarded from the output. Suggested values: 10 - 20.

sequence

A vector of strings representing protein amino acid sequences, or the appropriate column name if a data.frame is supplied to data argument. If .fasta file path, or list with elements of class "SeqFastaAA" provided to data, this should be left blank.

id

A vector of strings representing protein identifiers, or the appropriate column name if a data.frame is supplied to data argument. If .fasta file path, or list with elements of class "SeqFastaAA" provided to data, this should be left blank.

Value

A data frame with columns:

id

Character, as from input

hit.type

Character, CD-Search results can include hit types that represent various confidence levels (specific hits, non-specific hits) and domain model scope (superfamilies, multi-domains).

pssm.id

Character, unique identifier for a domain models position-specific scoring matrix (PSSM).

align_start

Integer, start of the alignement in the query protein sequence.

align_end

Integer, end of the alignement in the query protein sequence.

evalue

Numeric, the expect value, or E-value, indicates the statistical significance of the hit as the likelihood the hit was found by chance.

bitscore

Numeric, this values is derived from the raw alignment score in which the statistical properties of the scoring system used have been taken into account.

acc

Character, the accession number of the hit, which can either be a domain model or a superfamily cluster.

desc

Character, the short name of a conserved domain, which concisely defines the domain.

incomplete

Character, if the hit to a conserved domain is partial (i.e., if the alignment found by RPS-BLAST omitted more than 20 percent of the CDs extent at either the n- or c-terminus or both), this column will be populated with one of the following values: N - incomplete at the N-terminus, C - incomplete at the C-terminus, NC - incomplete at both the N-terminus and C-terminus. If the hit to a conserved domain is complete, then this column will be populated with a dash (-).

superfamily

Character, the short name of a conserved domain, which concisely defines the domain.

definition

Character, this column is populated only for domain models that are specific or non-specific hits, and it lists the accession number of the superfamily to which the domain model belongs.

Note

This function creates temporary files in the working directory.

Source

https://www.ncbi.nlm.nih.gov/Structure/bwrpsb/bwrpsb.cgi

References

Lu S, Wang J, Chitsaz F, Derbyshire MK, Geer RC, Gonzales NR, Gwadz M, Hurwitz DI, Marchler GH, Song JS, Thanki N, Yamashita RA, Yang M, Zhang D, Zheng C, Lanczycki CJ, Marchler-Bauer A (2020) CDD/SPARCLE: the conserved domain database in 2020, Nucleic Acids Res. 48(D1):D265-D268. doi: https://doi.org/10.1093/nar/gkz991

See Also

get_hmm plot_prot

Examples

1
2
3
4
5
6
library(ragp)
cdd_pred <- get_cdd(data = at_nsp[1:10,],
                    sequence,
                    Transcript.id)
                    
cdd_pred[,1:11]

missuse/ragp documentation built on Jan. 4, 2022, 10:49 a.m.