BUILDTREES.PY(1)
BUILDTREES.PY(1) π User Commands π bestie, this is your guide to the one and only BuildTrees.py!! π§
β¨ NAME β¨
BuildTrees.py - Repertoire clonal assignment toolkit (Python 3) π¦
π DESCRIPTION π
okay so first, heads up π the tool throws some SyntaxWarnings about is being used with literals. they're just warnings, but they're lowkey annoying:
/usr/bin/BuildTrees.py:488: SyntaxWarning: "is" with a literal. Did you
mean "=="?
if germline is "":
/usr/bin/BuildTrees.py:543: SyntaxWarning: "is" with a literal. Did you
mean "=="?
if ngermline is "":
/usr/bin/BuildTrees.py:801: SyntaxWarning: "is not" with a literal. Did
you mean "!="?
if regions["cdr3_imgt"] is not "" and regions["cdr3_imgt"] is not
None:
/usr/bin/BuildTrees.py:827: SyntaxWarning: "is not" with a literal. Did
you mean "!="?
elif regions["fwr3_imgt"] is not "" and regions["fwr3_imgt"] is
not None:
here's the usage line, the full fit π:
usage: BuildTrees.py [--version] [-h] -d DB_FILES [DB_FILES ...]
[--outdir OUT_DIR] [--outname OUT_NAME] [--log LOG_FILE]
[--failed] [--format {airr,changeo}] [--collapse] [--ncdr3]
[--nmask] [--md META_DATA [META_DATA ...]] [--clones
TARGET_CLONES [TARGET_CLONES ...]] [--minseq MIN_SEQ] [--sample
SAMPLE_DEPTH] [--append APPEND [APPEND ...]] [--igphyml] [--nproc
NPROC] [--clean {none,all}] [--optimize {n,r,l,lr,tl,tlr}]
[--omega {e,ce,e,e,ce,e,e,ce,ce,ce}] [-t {e,ce}] [--motifs
MOTIFS] [--hotness HOTNESS] [--oformat {tab,txt}] [--nohlp]
[--asr ASR]
so the whole thing basically converts TSV files into IgPhyML input files 𧬠it's giving data pipeline, and it's giving main character energy π
π help
--versionβ shows the program's version number and then exits πΈ-h,--helpβ shows the help message and exits π«Ά
πΈ standard arguments
-d DB_FILES [DB_FILES ...]β give it a list of tab delimited database files. the default isNoneπ--outdir OUT_DIRβ point this at a new folder if you want the output somewhere else. if you skip it, the input file's directory gets used. the default isNoneπ--outname OUT_NAMEβ changes the prefix of the successfully processed output file to whatever string you pick. you can't use it with multiple input files β οΈ the default isNoneπ¦--log LOG_FILEβ writes verbose logging to a file. you can't use it with multiple input files either π the default isNoneπ--failedβ if you add this, it makes files holding the records that failed processing. the default isFalseπ--format {airr,changeo}β sets the input and output format. the default isairrπ
π sequence processing arguments
--collapseβ if you flag it, identical sequences get collapsed before they're exported to fasta. the default isFalseβ¨--ncdr3β if you flag it, CDR3 gets removed from all sequences. the default isFalseπ--nmaskβ if you flag it, the tool won't try to mask split codons. the default isFalseπ ββοΈ--md META_DATA [META_DATA ...]β a list of fields holding metadata that you want included in the sequence headers of the output fasta file. the default isNoneπ·οΈ--clones TARGET_CLONES [TARGET_CLONES ...]β a list of clone IDs to output, if you want that. the default isNoneπ―--minseq MIN_SEQβ the minimum number of data sequences. any clones with fewer sequences than this get excluded π§Ή the default is1--sample SAMPLE_DEPTHβ the depth of reads to subsample, done before deduplication π² the default is-1--append APPEND [APPEND ...]β a list of columns to append to the sequence ID so everything stays unique π the default isNone
𧬠IgPhyML arguments (see igphyml -h for details)
--igphymlβ runs IgPhyML on the output. the default isFalseπ₯--nproc NPROCβ how many threads IgPhyML gets spread across π§΅ the default is1--clean {none,all}β deletes intermediate files.noneleaves every intermediate file alone,alldeletes all of them. the default isnoneποΈ--optimize {n,r,l,lr,tl,tlr}β optimizes the combo of topology (t), branch lengths (l), and parameters (r), or nothing at all (n), for IgPhyML π§ the default islr--omega {e,ce,e,e,ce,e,e,ce,ce,ce}β the omega parameters to estimate for FWR and CDR, respectively.emeans estimate, andcemeans estimate plus a confidence interval π the default ise,e-t {e,ce}β the kappa parameters to estimate.emeans estimate,cemeans estimate plus a confidence interval π« the default ise--motifs MOTIFSβ which motifs to estimate mutability for π§© the default isWRC_2:0,GYW_0:1,WA_1:2,TW_0:3,SYC_2:4,GRS_0:5--hotness HOTNESSβ the mutability parameters to estimate.emeans estimate,cemeans estimate plus a confidence interval π‘οΈ the default ise,e,e,e,e,e--oformat {tab,txt}β the IgPhyML output format π the default istab--nohlpβ skips the HLP model π the default isFalse--asr ASRβ the ancestral sequence reconstruction interval, from 0 to 1 π¦ the default is-1
ποΈ output files
<folder>β the folder holding the fasta and partition files for each clone πlineagesβ the successfully processed records βlineages-failβ the database records that failed processing βigphyml-passβ the parameter estimates and lineage trees from running IgPhyML, if you asked for it π³
π required fields
your input needs these fields, no cap π§’: sequence_id, sequence, sequence_alignment, germline_alignment_d_mask or germline_alignment, v_call, j_call, clone_id, v_sequence_start
β οΈ bestie, the warnings above are aboutisvs==with literals. the tool still runs, but it's a good idea to keep an eye on them π
π§ AUTHOR π§
Nilesh Patra wrote this manpage for the Debian distribution π and it can be used for any other usage of the program π
that's the whole tea, bestie π«Ά this was BuildTrees.py 1.0.1, from October 2020, and the manual page is BUILDTREES.PY(1) β¨ periodt π π¦
π¦ where this page comes from
- debian bookworm: changeo 1.3.0-1 Β· CC-BY-SA-4.0
- debian trixie: changeo 1.3.0-3 Β· CC-BY-SA-4.0
- ubuntu jammy: changeo 1.2.0-1 Β· CC-BY-SA-4.0
- ubuntu noble: changeo 1.3.0-1 Β· CC-BY-SA-4.0
- ubuntu questing: changeo 1.3.0-3
- ubuntu resolute: changeo 1.3.0-4 Β· CC-BY-SA-4.0
- ubuntu stonking: changeo 1.3.0-4 Β· CC-BY-SA-4.0
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms