Skip to content

Commit 59ba46c

Browse files
clarify variable definition comments
1 parent bde2754 commit 59ba46c

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

pysyndna/src/fit_syndna_models.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,26 @@
1717

1818
SYNDNA_ID_KEY = 'syndna_id'
1919
SYNDNA_POOL_NUM_KEY = 'syndna_pool_number'
20+
# The below is the fraction (range 0-1) of the total mass of the syndna pool
21+
# that is capable of contributing to counted reads. The only reads used are
22+
# those that hit the synDNA insert, not the (shared) backbone of the plasmid,
23+
# so only the fraction of the overall synDNA plasmid that is insert can
24+
# contribute to the counts; for example, if the insert is 2000 bases long and
25+
# the overall plasmid including the insert is 5000 bases long, then only
26+
# 2000/5000 = 2/5ths of the mass of the synDNA pool can contribute to
27+
# the counted reads. Other factors that affect the amount of synDNA mass
28+
# contributing to reads (such as shearing fraction for long plasmids) can also
29+
# be incorporated into this fraction.
2030
SYNDNA_CONTRIBUTING_FRACTION_KEY = 'syndna_contributing_fraction'
2131
SYNDNA_INDIV_NG_UL_KEY = 'syndna_indiv_ng_ul'
2232
SYNDNA_FRACTION_OF_POOL_KEY = 'syndna_fraction_of_pool'
23-
# this is not a great name, but it is what was agreed on for the API early on;
33+
# the below is not a great name, but it is what was agreed on for the API early on;
2434
# it is the total mass of syndna pool that was added to a sample during prep
2535
INPUT_SYNDNA_POOL_MASS_NG_KEY = 'mass_syndna_input_ng'
26-
# this is the portion of the syndna pool mass that could actually contribute to
27-
# syndna reads for the sample, and thus can be used in the reads vs mass fit.
28-
# Since only inserts (and not the rest of the syndna plasmid) contribute to the
29-
# reads, this will generally be less than 1.
36+
# the below is the portion of the syndna pool mass (in ng) that could actually
37+
# contribute to syndna reads for the sample, and thus can be used in the reads
38+
# vs mass fit (since only inserts, and not the rest of the syndna plasmid,
39+
# contribute to the reads).
3040
SYNDNA_POOL_MASS_NG_KEY = "mass_syndna_pool_ng"
3141
SAMPLE_TOTAL_READS_KEY = 'raw_reads_r1r2'
3242
SYNDNA_COUNTS_KEY = 'read_count'

0 commit comments

Comments
 (0)