annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/current/consensus/ConsensusObject.java @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 package consensus;
jpayne@68 2
jpayne@68 3 import structures.ByteBuilder;
jpayne@68 4
jpayne@68 5 /**
jpayne@68 6 * Superclass for consensus package classes.
jpayne@68 7 *
jpayne@68 8 * @author Brian Bushnell
jpayne@68 9 * @date September 6, 2019
jpayne@68 10 *
jpayne@68 11 */
jpayne@68 12 public abstract class ConsensusObject {
jpayne@68 13
jpayne@68 14 /*--------------------------------------------------------------*/
jpayne@68 15 /*---------------- Methods ----------------*/
jpayne@68 16 /*--------------------------------------------------------------*/
jpayne@68 17
jpayne@68 18 /** Return the text representation of this object */
jpayne@68 19 public abstract ByteBuilder toText();
jpayne@68 20
jpayne@68 21 @Override
jpayne@68 22 public final String toString(){return toText().toString();}
jpayne@68 23
jpayne@68 24 /*--------------------------------------------------------------*/
jpayne@68 25 /*---------------- Statics ----------------*/
jpayne@68 26 /*--------------------------------------------------------------*/
jpayne@68 27
jpayne@68 28 static int minDepth=2;
jpayne@68 29 public static float MAF_sub=0.25f;
jpayne@68 30 public static float MAF_del=0.5f;
jpayne@68 31 public static float MAF_ins=0.5f;
jpayne@68 32 public static float MAF_noref=0.4f;
jpayne@68 33 static boolean onlyConvertNs=false;
jpayne@68 34 static boolean noIndels=false;
jpayne@68 35 public static float trimDepthFraction=0.0f;
jpayne@68 36 public static boolean trimNs=false;
jpayne@68 37
jpayne@68 38 public static boolean useMapq=false;
jpayne@68 39 public static boolean invertIdentity=false;
jpayne@68 40 public static int identityCeiling=150;
jpayne@68 41
jpayne@68 42 /*--------------------------------------------------------------*/
jpayne@68 43 /*---------------- Constants ----------------*/
jpayne@68 44 /*--------------------------------------------------------------*/
jpayne@68 45
jpayne@68 46 /* Possible types */
jpayne@68 47 /** Match/Sub, neutral-length node or edge to the next REF node */
jpayne@68 48 public static final int REF=2;
jpayne@68 49 /** Insertion node or edge to an insertion node */
jpayne@68 50 public static final int INS=1;
jpayne@68 51 /** Edge to a non-adjacent node */
jpayne@68 52 public static final int DEL=0;
jpayne@68 53
jpayne@68 54 static final String[] TYPE_NAMES={"DEL", "INS", "REF"};
jpayne@68 55
jpayne@68 56 public static boolean verbose=false;
jpayne@68 57
jpayne@68 58 }