readCDHIT: Read the clusters from a file.

Description Usage Arguments Value Examples

View source: R/AStrap.R

Description

Read a text file of list of clusters output by CD-HIT-EST and creates a data frame form it.

Usage

1
readCDHIT(cdhit.path)

Arguments

cdhit.path

A string for the name of a text file of list of clusters output by CD-HIT-EST.

Value

A data frame contation the information of isoform clusters with four columns: ClusterID, seqID, seqLen, seqNum. ClusterID is the name of the cluster; seqID is the name of the transcript; seqLen is the length of the transcript; seqNum is the number of transcripts contatined in this class.

Examples

1
2
3
4
##load the exapmle data
cdhit.path <- system.file("extdata","example_cdhitest.clstr",
                           package = "AStrap")
raw.cluster <- readCDHIT(cdhit.path)

BMILAB/AStrap documentation built on Nov. 20, 2020, 4:03 p.m.