Learn R Programming

pctax

pctax provides a comprehensive suite of tools for analyzing omics data.

The HTML documentation of the latest version is available at Github page.

Please go to https://bookdown.org/Asa12138/pctax_book/ for the full vignette.

Installation

The stable version is available on CRAN:

install.packages("pctax")

Or you can install the development version of pctax from GitHub with:

# install.packages("devtools")
devtools::install_github("Asa12138/pctax")

Copy Link

Version

Install

install.packages('pctax')

Monthly Downloads

228

Version

0.1.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Chen Peng

Last Published

February 9th, 2026

Functions in pctax (0.1.7)

df2tree1

From a dataframe to construct a phylo (save nwk)
as.dist.b_dist

Transfer b_dist to dist
envfitt

Envfit test for RDA result
drop_tips_update

Drop Tips and Update a Phylogenetic Tree
df2tree

From a dataframe to construct a phylo
bbtt

ggdotchart for diff analysis
%<>%

Assignment pipe
grap_p_test

Performs graph-based permutation tests
diff_da

Difference analysis
before_tree

Before df2tree check
download_taxonkit_dataset

Download taxonkit dataset
check_taxonkit

Check taxonkit
plot.time_cm

Plot time_cm
kwtest

KW test
install_taxonkit

Install taxonkit
b_NTI1

Calculate beta_NTI
b_analyse

Beta_diversity Ordination: dimensionality reduction
load_mpa_df

Load a metaphlan format data.frame
load_N_data

Load N-cycle data
name_or_id2df

Transfer taxon name or taxid to the lineage dataframe
gp_dis_density

Group inter-intra density
plot.a_res

Plot a_res object
%>%

Pipe operator
get_diff_type

Get mean and type
myRDA

RDA
nst

Calculate NST for each group
pctax-package

pctax: Professional Comprehensive Omics Data Analysis
convert_taxon_name

Convert taxon names between Chinese and Latin
ncm

Sloan Neutral Model
permanova

Permanova between a otutab and a variable
multi_bar

Difference analysis
procrustes_analyse

Procrustes Rotation of Two Configurations and PROTEST
rare_curve_sample

Rare the sample
cor_net

Correlation network, species-interaction network for omics
micro_sbatch

Microbiome sbatch
mat_dist

Calculate distance for otutab
geo_sim

Lm for sample similarity and geographical distance
get_all_sp_la_zh_name

get all species Latin and Chinese name from the CCTCC database
plot_two_tree

Plot two trees in one plot
plot_one_phage

Plot Individual Phage Genome Structure with Annotations
pc_tax1

test data (pc_otu class) for pc_tax package.
pre_format_report

Preprocess MPA Species Abundance and Taxonomy Data
pc_valid

Judge pc_otu is valid or not
pre_assembly_stats

Prepare the result from assembly_stats (.json file)
plot.pro_res

Plot pro_res
plot_N_cycle

Plot the N-cycling pathway and genes
pre_fastp

Prepare the result from fastp (.json file)
stamp_plot

Stamp style plot
suijisenlin

RandomForest
time_by_cm

Time series analysis
pc_otu

Create a pc_otu class object
nti_rc

Calculate b_NTI and RC_bray for each group
pre_genomad

Preprocess geNomad and CheckV Output Results
summary.pc_otu

Summary pc_otu
volcano_p

Volcano plot for difference analysis
taxonkit_reformat

Reformat Taxonomic Lineage using taxonkit
taxonkit_name2taxid

Convert Taxonomic Names to TaxIDs
taxonkit_lineage

Retrieve Taxonomic Lineage using taxonkit
tax_lca

Calculate the lowest common ancestor (LCA) of a set of taxa
taxonkit_list

Taxonkit list
rare_curve_species

Rare the species
plot.b_res

Plot a b_res
pre_gtdb_tk

Preprocess GTDB-Tk Classification Results
plot.g_test

Plot g_test
z_diversity_decay

Calculate Zeta Diversity with Distance
pre_tax_table

Complete a taxonomy table
z_diversity

Calculate Zeta Diversity
rarefaction

Rarefy a otutab
plot_element_cycle

Plot element cycle
plot_contigs_quality

Visualize Contigs Quality Metrics
plot_checkm2_res

Visualize CheckM2 Genome Quality Assessment Results
plot_gtdb_tr

Plot GTDB-Tk Phylogenetic Tree with Taxonomic Coloring
multi_conf

Difference analysis
print.pc_otu

Print
taxonkit_filter

Filter TaxIDs based on Taxonomic Ranks
print.virus_res

Print method for virus_res objects
taxonkit_lca

Compute Lowest Common Ancestor (LCA) of TaxIDs
RDA_plot

Plot RDA res
ann_tree

Annotate a tree
add_strip

add strips for a tree plot
all_sp_la_zh_name

all species latin names and chinese names
ALDEX

ALDEX
add_tax

Add taxonomy for a pc_otu object
RCbray1

Calculate RCbray-curtis
a_diversity

Calculate a_diversity of otutab
all_ec_info

all element cycle information.
aor

Calculate Abundance-occupancy_relationship
as.b_dist

Transfer dist to b_dist
batch_mediate

Batch mediate
b_res_3d

3D plot for b_res