Utils

The helpers core is built from: fold changes, motif strings and strands, the search space,

Counts to log2 fold change

Each plasmid’s depletion is the log2 ratio of its share of the recipient sample to its share of the donor library, normalised so that the sample’s median plasmid sits at 0. Four details matter:

  • The pseudocount is added to raw counts, before normalisation: (n+1)/Σ(n+1) per sample, then the ratio. Normalised counts are far below 1, so adding 1 after normalising would flatten every ratio towards 1.
  • Shares are over the plasmids that pass the count filter, not over every molecule sequenced. That is a per-sample constant: it shifts all log2FC of a sample by the same amount, and the median normalisation below removes it.
  • Each sample is normalised to its median plasmid (normalize="median", the default): each column’s median log2FC is subtracted, so the median plasmid has log2FC 0, a fold change of 1. This is median-ratio normalisation, as in DESeq2; on the log2 scale, subtracting the median is the same as rescaling the counts by the median ratio. Shares alone are not enough: when a few plasmids take a large share of a sample’s reads, every other plasmid’s share shrinks and its log2FC falls below 0, by an amount that differs from strain to strain. Against the median plasmid, a depletion threshold of −0.5 means the same in every strain. normalize="total" stops at the shares.
  • The filter is reference count > count_threshold (default 20), in the one reference column.

count_threshold filters on donor abundance, not on depletion, so raising it costs power but does not choose which motifs are called. It does set how many plasmids carry each motif, so num_sequences is comparable between experiments only at the same threshold.


source

calculate_log2fc

log2 fold change of each insert against the reference column, median-normalised by default.

calculate_log2fc(df, reference_column='MFDpir', count_threshold=20,
                 pseudocount=1, normalize='median')
Parameter Type Default Description
df DataFrame read counts, one row per insert, one column per sample; NaN counts as 0
reference_column str 'MFDpir' the input-library column every sample is compared with
count_threshold int 20 an insert is kept when its reference count is strictly above this
pseudocount float 1 added to the raw counts, before normalisation
normalize str 'median' “median”: each sample’s median insert at 0; “total”: shares only
returns DataFrame one column per sample, reference dropped; None without it, empty if none pass
# Four plasmids, a reference and one sample. 'd' sits exactly at the threshold and is dropped:
# the filter is strict. By default the median plasmid, 'c', is at 0; "total" leaves the shares.
_toy = pd.DataFrame({'ref': [30, 90, 60, 20], 's': [0, 99, 40, 5]}, index=['a', 'b', 'c', 'd'])
_fc = calculate_log2fc(_toy, reference_column='ref', count_threshold=20, pseudocount=1)
_fc_total = calculate_log2fc(_toy, reference_column='ref', count_threshold=20, pseudocount=1,
                             normalize="total")
pd.DataFrame({"median": _fc['s'], "total": _fc_total['s']})
median total
a -4.381011 -4.588244
b 0.709247 0.502014
c 0.000000 -0.207233
# The smaller example library, against its MFDpir donor: the lowest log2FC in each strain.
counts_file="countsTable.csv.gz"
file_path=os.path.join(data_path,counts_file)
counts=pd.read_csv(file_path, index_col=0)
counts = counts[[col for col in counts.columns if ("_T0" in col) or ("MFDpir" in col)]]

log2fc_df = calculate_log2fc(counts, reference_column='MFDpir', count_threshold=20, pseudocount=1)
log2fc_df.min(axis=0)
K12_T0       -2.834854
HS_T0        -3.317345
E1114_T0     -4.534150
E1167_T0     -3.642206
H120_T0      -3.562062
TA054_T0     -3.306746
TA447_T0     -3.579671
E101_T0      -8.109654
41-1Ti9_T0   -4.247928
TA280_T0     -4.802508
M114_T0      -4.146918
TA249_T0     -4.933508
ROAR8_T0     -4.611930
JJ1886_T0    -9.238267
CFT073_T0    -3.881944
APECO1_T0    -6.538809
UTI89_T0     -8.534175
S88_T0       -8.607330
MG1655_T0    -4.738110
dtype: float64

source

revcomp

Reverse complement of a DNA sequence or an IUPAC motif: R becomes Y, N stays N.

revcomp(seq)
Parameter Type Default Description
seq str a DNA sequence or an IUPAC motif; bracketed classes are accepted
returns str the reverse complement, upper-cased, classes written as IUPAC letters

source

normalise_motif

motif in upper-case IUPAC letters; anything else raises ValueError.

normalise_motif(motif)
Parameter Type Default Description
motif str IUPAC letters and/or bracketed classes such as [AG], in any case
returns str upper-cased, each class written as its IUPAC letter: '[AG]TAC' -> 'RTAC'

normalise_motif rejects anything that is neither an IUPAC letter nor a class of A, C, G and T, so a misspelt motif fails loudly instead of matching nothing.

# Degenerate letters are complemented too: Y (C/T) pairs with R (A/G), so JJ1886's Type I site
# read on the other strand is REBASE's RTACNNNNGTG. A bracketed class is written as its IUPAC letter.
revcomp("CACNNNNGTAY"), normalise_motif("[ag]tacnnnngtg")
('RTACNNNNGTG', 'RTACNNNNGTG')

Choosing which strand to report a motif on

A recognition site and its reverse complement are the same site. The library is scanned on both strands, so a motif and its reverse complement always get identical statistics — same number of supporting sequences, same depletion score, same average log2FC. They are one answer, and which spelling to report is a tie that has to be broken the same way every time, or two result tables cannot be compared (GAGACC in one, GGTCTC in the other).

canonical_motif reports the strand REBASE uses, so results line up with the literature and with enzyme names (GGTCTC is BsaI/Eco31I). For motifs REBASE does not know, which includes most of what a discovery screen finds, it falls back to the alphabetically first strand: arbitrary, but the same on every run and machine. A motif REBASE lists on both strands takes the alphabetically first too.


source

canonical_motif

The strand to report motif on: the one REBASE uses, else the alphabetically first.

canonical_motif(motif, rebase_motifs=None)
Parameter Type Default Description
motif str an IUPAC motif, e.g. 'GAGACC'; bracketed classes are accepted
rebase_motifs set | None None motifs to match; default the REBASE Gold Standard set shipped
returns str motif or its reverse complement, in IUPAC letters (normalise_motif)
# REBASE spells the BsaI / Eco31I site GGTCTC, so that is the strand we report; a motif unknown
# to REBASE is reported on its alphabetically first strand.
canonical_motif('GAGACC'), canonical_motif('AACNNNNCTTT'), canonical_motif('TGGCCGC', rebase_motifs=set())
('GGTCTC', 'AAAGNNNNGTT', 'GCGGCCA')

source

get_lib_seq_context

Each insert inside its vector flanks, as motifs are searched: a site can span the junction.

get_lib_seq_context(seqs, left, right)
Parameter Type Default Description
seqs list the inserts
left str vector sequence 5’ of the insert
right str vector sequence 3’ of the insert
returns list left + insert + right for each insert, upper-cased, in input order
left, right = "GTCCTAGGTATAATACTAGT", "GTTTTAGAGCTAGAAATAGC"
lib=get_lib_seq_context(log2fc_df.index,left,right)
lib[:2]
['GTCCTAGGTATAATACTAGTCGGAGGTACTGGGTACATTTGTTTTAGAGCTAGAAATAGC',
 'GTCCTAGGTATAATACTAGTTGGCGATAATGCCGGCTATCGTTTTAGAGCTAGAAATAGC']
_custom_motif_to_regex("RTACNNNNGTG")
'[AG]TAC[ATGC][ATGC][ATGC][ATGC]GTG'

The search space

A pattern (d1, spacer, d2) is the shape of a site: defined bases, undefined gap, defined bases. get_patterns returns the shapes the scan searches by default, each in the one form the scan uses.

The default is 43 patterns: contiguous sites of 5–7 bases, and gapped sites whose halves are 2–4 bases, with 5–8 defined bases in all and a gap of 1–8. It fits 837 of the 983 distinct motifs in the REBASE Gold Standard set shipped with the package. The arguments widen it: get_patterns(contiguous=(4, 8), halves=(2, 5), max_spacer=9) (68 patterns) fits 902, and adding max_defined=9 (77) fits 911, at about 8 times the motifs tested (3.6 million against 460,000 on the larger example library). That is not the default because, at the default thresholds, a wider search adds one-base-longer descriptions of weak or degenerate sites that steps 3 and 4 do not yet catch.

A site whose half has an undefined base inside it, such as CNGTANNNNNNTTC, has two gaps, and no pattern describes it: 47 of the 983 Gold Standard motifs are of this kind, almost all Type I. Each concrete variant of such a site has a one-gap shape, here (5, 6, 3), which can be passed in patterns to find the site. The variants are then reported as separate rows (CAGTANNNNNNTTC, CCGTANNNNNNTTC, …), because writing N inside a half would give a shape the scan does not search.


source

get_patterns

The search space: every motif architecture the scan looks for by default.

get_patterns(contiguous=(5, 7), halves=(2, 4), max_spacer=8, min_defined=5,
             max_defined=8)
Parameter Type Default Description
contiguous tuple (5, 7) shortest and longest contiguous site
halves tuple (2, 4) shortest and longest half of a gapped site
max_spacer int 8 longest gap of a gapped site; the shortest is 1
min_defined int 5 fewest defined bases of a gapped site, both halves together
max_defined int 8 most defined bases of a gapped site
returns list (d1, spacer, d2) in canonical form, by number of defined bases, then spacer
patterns = get_patterns()
patterns[:5], patterns[-5:]
([(5, 0, 0), (2, 1, 3), (2, 2, 3), (2, 3, 3), (2, 4, 3)],
 [(4, 4, 4), (4, 5, 4), (4, 6, 4), (4, 7, 4), (4, 8, 4)])

Custom motifs

Presence and log2FC lookups for a hand-picked list of motifs, independent of find_restricted_motifs. A motif may use IUPAC codes (N, R, Y, …) and regex character classes ([AG]) interchangeably, and is searched on both strands of the insert with its context. An empty or non-string entry of the list gives a column of False; a misspelt motif raises ValueError (normalise_motif).

_seqs = pd.Series(1, index=["AAGGTCTCAA", "AAGAGACCAA", "TCTCAAAA", "TTTTTTTT"])
# GGTCTC on the forward strand, on the reverse strand, and across the left junction
# ("GG" + "TCTC...", once the flank is restored).
_get_filter_for_motif(_seqs, "GGTCTC", "GG", "")
AAGGTCTCAA     True
AAGAGACCAA     True
TCTCAAAA       True
TTTTTTTT      False
dtype: bool

source

get_custom_motif_presence_in_library

Which of motif_list each insert carries, searched with its flanks and on both strands.

get_custom_motif_presence_in_library(short_sequences_list, left_context,
                                     right_context, motif_list)
Parameter Type Default Description
short_sequences_list list the inserts
left_context str vector sequence 5’ of the insert
right_context str vector sequence 3’ of the insert
motif_list list motifs in IUPAC letters and/or classes, e.g. '[AG]TACNNNNGTG'
returns DataFrame a boolean column per motif; a row per insert, indexed by insert with flanks
_p = get_custom_motif_presence_in_library(["TCTCAA", "AAGAGA", "CCCCCC"], "gg", "CC", ["GGTCTC", "[AG]AGA"])
_p
GGTCTC [AG]AGA
full_sequence
GGTCTCAACC True True
GGAAGAGACC True True
GGCCCCCCCC False False

source

get_log2fc_distribution_by_motif

Each plasmid’s log2FC labelled by the motif it carries, in long format for plotting.

get_log2fc_distribution_by_motif(log2fc_df, left_context, right_context,
                                 motif_list, sample_columns=None)
Parameter Type Default Description
log2fc_df DataFrame log2FC indexed by insert, one column per sample
left_context str vector sequence 5’ of the insert
right_context str vector sequence 3’ of the insert
motif_list list motifs as for get_custom_motif_presence_in_library
sample_columns list | None None the samples to include; default every column
returns DataFrame ‘sequence’, ‘Motif_Category’ (a motif or ‘Other’), ‘sample’, ‘log2fc’

A plasmid carrying several motifs is labelled with the last of them in motif_list, as in plot_motif_depletion. With no insert to search the function prints an error and returns None.

_l = pd.DataFrame({'s1': [-3.0, -2.0, 0.1], 's2': [-1.0, 0.0, 0.2]}, index=["GGTCTCAAA", "GGTCTCAAAA", "CCCCCC"])
_d = get_log2fc_distribution_by_motif(_l, "", "", ["GGTCTC", "CAAAA"])
_d
sequence Motif_Category sample log2fc
0 GGTCTCAAA GGTCTC s1 -3.0
1 GGTCTCAAAA CAAAA s1 -2.0
2 CCCCCC Other s1 0.1
3 GGTCTCAAA GGTCTC s2 -1.0
4 GGTCTCAAAA CAAAA s2 0.0
5 CCCCCC Other s2 0.2

Example: JJ1886’s motifs in the 150 nt panel

JJ1886 replicate R1 against Control_R1 in counts_panel.csv.gz, with the panel’s flanks and JJ1886’s three RM motifs as the list:

counts_panel = pd.read_csv(os.path.join(data_path, "counts_panel.csv.gz"), index_col=0)
left_panel, right_panel = "GTCTAGGGCGGCGGTAAAAC", "ACTAGAGCACCAGAAGTCTA"
log2fc_panel = calculate_log2fc(counts_panel[["Control_R1", "JJ1886_R1"]], reference_column="Control_R1",
                                count_threshold=20, pseudocount=1)
log2fc_panel.describe()
JJ1886_R1
count 3.010800e+04
mean -1.928490e-01
std 9.257199e-01
min -7.591883e+00
25% -2.366480e-01
50% -3.469447e-18
75% 2.150265e-01
max 2.108241e+00
jj1886_motifs = ["AAAGNNNNGTT", "[AG]TACNNNNGTG", "GGTCTC"]  # JJ1886 cognate RM motifs
presence_jj1886 = get_custom_motif_presence_in_library(log2fc_panel.index.tolist(), left_panel, right_panel, jj1886_motifs)
presence_jj1886.sum()
AAAGNNNNGTT       913
[AG]TACNNNNGTG    963
GGTCTC             55
dtype: int64

Number of plasmids, median log2FC and fraction depleted (log2FC < −1) per motif:

dist_jj1886 = get_log2fc_distribution_by_motif(log2fc_panel, left_panel, right_panel, jj1886_motifs, sample_columns=["JJ1886_R1"])
dist_jj1886.dropna(subset="log2fc").groupby("Motif_Category")["log2fc"].agg(n="size", median="median", frac_depleted=lambda x: (x < -1).mean())
n median frac_depleted
Motif_Category
AAAGNNNNGTT 882 -3.402149 0.996599
GGTCTC 55 -2.983074 0.945455
Other 28209 0.024746 0.014003
[AG]TACNNNNGTG 962 -3.311400 0.997921

RTACNNNNGTG (R = A/G) matches exactly the same plasmids as [AG]TACNNNNGTG:

iupac_check = get_custom_motif_presence_in_library(log2fc_panel.index.tolist(), left_panel, right_panel,
                                                    ["[AG]TACNNNNGTG", "RTACNNNNGTG"])
iupac_check.sum()
[AG]TACNNNNGTG    963
RTACNNNNGTG       963
dtype: int64

Is a motif’s depletion more than the sample’s own noise?

The scan in 00_core tests a great many motifs (about 330,000 with the default 5 or more supporting plasmids on the smaller example library, 460,000 on the larger), so some will look perfect by luck alone. How many supporting plasmids a call needs before that stops being a plausible explanation depends on the sample, not on a constant.

Under the null, a motif’s depleted count is Binomial(n, p) where p is the rate at which its carriers would deplete in this sample if no site were involved: their background. A noisy sample has a higher p and therefore needs more evidence for the same claim, automatically. How p is estimated for each motif is the next section; first, the binomial form itself.

Shuffled data bear this out. With each sample’s log2FC shuffled across its plasmids, 20 times for each of six strains of the two example libraries, find_restricted_motifs at the defaults calls nothing, at any min_support from 2 to 6; the smallest q in any shuffle is 0.005, on a row the confidence bound rejects.

What this does not model. The binomial treats the plasmids carrying a motif as independent draws. They are not: motifs co-occur, which is the whole subject of step 4 of the core pipeline. So the p-value is a screen against chance, not a complete model of how a spurious call arises: a shadow of a real site is highly significant by this test and still needs explaining away.

# BH: p*n/rank is 0.04 for all four here, so all four q-values are 0.04.
_benjamini_hochberg([0.01, 0.02, 0.03, 0.04])
array([0.04, 0.04, 0.04, 0.04])

The background depends on the insert’s GC content

Within one sample, the chance that a plasmid looks depleted is not the same for every insert. On the 20 nt library, AT-rich inserts deplete far more often than GC-rich ones in some strains, for no reason a site could explain (possibly a fitness cost of such inserts; the cause is unknown). Fraction of plasmids below −0.5, on log2FC as calculate_log2fc returns them:

_c = pd.read_csv(os.path.join(get_example_data_dir(), "countsTable.csv.gz"), index_col=0)
_l2 = calculate_log2fc(_c[["MFDpir", "E1114_T0", "H120_T0", "JJ1886_T0"]], reference_column="MFDpir")
_gc = pd.Series([(s.count("G") + s.count("C")) / len(s) for s in _l2.index], index=_l2.index)
_bins = pd.cut(_gc, [0, .25, .35, .45, .55, .65, 1], include_lowest=True)
_by_gc = (_l2 < -0.5).groupby(_bins, observed=True).mean().T.round(2)
_by_gc.loc["(plasmids)"] = _bins.value_counts().reindex(_by_gc.columns).values
_by_gc
(-0.001, 0.25] (0.25, 0.35] (0.35, 0.45] (0.45, 0.55] (0.55, 0.65] (0.65, 1.0]
E1114_T0 0.58 0.31 0.17 0.11 0.06 0.07
H120_T0 0.46 0.19 0.10 0.06 0.03 0.02
JJ1886_T0 0.04 0.05 0.07 0.07 0.06 0.06
(plasmids) 267.00 1126.00 3170.00 3910.00 2370.00 660.00

E1114 depletes 0.58 of the inserts with GC ≤ 25% and 0.07 of those above 65%; H120 0.46 against 0.02. JJ1886 hardly varies. Against one sample-wide rate, any motif made of A and T inherits the excess of the inserts that carry it and is called: 42 calls in E1114 and 39 in H120, almost all AT-rich.

The fix is the standard one in motif enrichment (HOMER’s GC-matched background): compare a motif’s carriers with plasmids of the same GC content. plasmid_background gives each plasmid the depletion rate of the plasmids in its insert-GC decile, and a motif’s null rate is the mean of its carriers’ backgrounds. GC is counted on the insert alone: the flanks are the same in every plasmid. The bins are deciles, fixed rather than a parameter: fine enough to follow the trend above, coarse enough that every rate rests on hundreds of plasmids. A 20 nt insert has only 21 possible GC contents, so deciles that would share an edge merge: the 20 nt library has 8 bins of 660–2,020 plasmids, the 150 nt panel library 10 of 1,805–3,858.


source

plasmid_background

Each plasmid’s background: the depletion rate of the plasmids in its insert-GC decile.

plasmid_background(sequences, log2fc, log2fc_thr=-1)
Parameter Type Default Description
sequences list the inserts, without the vector flanks
log2fc log2FC per insert, in the same order, median-normalised as calculate_log2fc does
log2fc_thr float -1 a plasmid is depleted below this
returns ndarray one rate per plasmid, strictly between 0 and 1
# E1114: the bins plasmid_background uses, and each one's background. An AT-rich insert's is
# several times a GC-rich one's, as in the table above.
_bg = plasmid_background(_l2.index, _l2["E1114_T0"], -0.5)
(pd.DataFrame({"insert GC": _gc.to_numpy(), "background": _bg}).groupby("background")["insert GC"]
   .agg(["min", "max", "size"]).sort_values("min").round(3))
min max size
background
0.363963 0.10 0.35 1393
0.199697 0.40 0.40 1317
0.148408 0.45 0.45 1853
0.124257 0.50 0.50 2020
0.096296 0.55 0.55 1890
0.065505 0.60 0.60 1435
0.057754 0.65 0.65 935
0.069697 0.70 0.90 660
# One rate per motif: the same 10/10 is far less surprising for AT-rich carriers whose background
# is 0.5 (0.5**10) than for carriers whose background is 0.05 (0.05**10).
_motif_pvalues([10, 10], [1.0, 1.0], [0.5, 0.05])
array([9.765625e-04, 9.765625e-14])

Helpers for analysis scripts

The pipeline does not use these; they serve analysis scripts that build pattern lists by hand or merge results across strains. get_patterns is the usual way to get the search space; generate_tuple_combinations builds patterns in bulk, and filter_symmetric_tuples keeps one of each mirror pair, the first met: (3, 4, 4) and (4, 4, 3) find the same sites, because the scan reads both strands.


source

generate_tuple_combinations

(d1, spacer, d2) patterns in bulk: every (a, b, c) with each element in its range.

generate_tuple_combinations(a1, a2, b1, b2, c1, c2)
Parameter Type Default Description
a1 int smallest first element
a2 int largest first element
b1 int smallest second element
b2 int largest second element
c1 int smallest third element
c2 int largest third element
returns list every (a, b, c) in the ranges, ends included, in lexicographic order
patterns = generate_tuple_combinations(2,4,1,8,2,4)
patterns[:5], patterns[-5:]
([(2, 1, 2), (2, 1, 3), (2, 1, 4), (2, 2, 2), (2, 2, 3)],
 [(4, 7, 3), (4, 7, 4), (4, 8, 2), (4, 8, 3), (4, 8, 4)])

source

filter_symmetric_tuples

Drop a tuple when its mirror (first and third elements swapped) came earlier in the list.

filter_symmetric_tuples(list_of_tuples)
Parameter Type Default Description
list_of_tuples list (d1, spacer, d2) tuples
returns list the tuples kept, in input order
# The first of a mirror pair is kept, in input order; a self-mirror tuple stays.
filter_symmetric_tuples([(4, 4, 3), (3, 4, 4), (4, 4, 4)])
[(4, 4, 3), (4, 4, 4)]

Merging motifs by spelling

find_iupac_equivalent_motifs groups same-length motifs that differ at ≤ max_mismatches positions (N positions skipped, reverse complements considered) and merges each group into one IUPAC motif, the union of bases at each position. It works on spelling alone, on any results table — across strains, say. Within one sample find_restricted_motifs already merges a degenerate site on the data, a variant joining only when its own carriers deplete like the site’s.

Groups are connected components: A~B and B~C merge all three, even when A and C are further apart. A motif that matched through its reverse complement is flipped before merging, and the merged motif is spelled on the strand of the group’s first row. Each row of the result, one per group with singletons included, gives merged_motif; original_motifs and original_motifs_oriented (as given, and on the merged strand); n_merged; max_pairwise_mismatches, over linked pairs; and rc_used, after sample_col when one is given. When df has them, num_sequences, avg_log2fc and fraction_depleted add total_sequences (their sum), avg_log2fc_weighted (weighted by num_sequences when present) and avg_fraction_depleted (unweighted mean).


source

find_iupac_equivalent_motifs

Merge same-length motifs a few mismatches apart into one IUPAC motif each.

find_iupac_equivalent_motifs(df, max_mismatches=2, motif_col='motif',
                             sample_col=None, consider_rc=True)
Parameter Type Default Description
df DataFrame a table of motifs, e.g. from find_restricted_motifs
max_mismatches int 2 motifs this many mismatches apart or fewer are linked; 1 or 2 advised
motif_col str 'motif' the column holding the motifs
sample_col str | None None the sample column, each sample merged on its own; None: one sample
consider_rc bool True also compare each motif with the other’s reverse complement
returns DataFrame one row per group of linked motifs, singletons included

Merging a results table with JJ1886’s motifs as the scan spells them (the statistics are illustrative): ATACNNNNGTG and CACNNNNGTAC are one mismatch apart once CACNNNNGTAC is flipped, and merge into REBASE’s RTACNNNNGTG:

called_jj1886 = pd.DataFrame({
    "motif":             ["GGTCTC", "ATACNNNNGTG", "CACNNNNGTAC", "AAAGNNNNGTT"],
    "fraction_depleted": [0.94, 1.00, 1.00, 0.99],
    "num_sequences":     [49, 97, 78, 867],
    "avg_log2fc":        [-2.77, -3.22, -3.26, -3.37],
})
merged_jj1886 = find_iupac_equivalent_motifs(called_jj1886, max_mismatches=2)
merged_jj1886
merged_motif original_motifs original_motifs_oriented n_merged max_pairwise_mismatches rc_used total_sequences avg_log2fc_weighted avg_fraction_depleted
0 GGTCTC GGTCTC GGTCTC 1 0 False 49 -2.770000 0.94
1 RTACNNNNGTG ATACNNNNGTG | CACNNNNGTAC ATACNNNNGTG | GTACNNNNGTG 2 1 True 175 -3.237829 1.00
2 AAAGNNNNGTT AAAGNNNNGTT AAAGNNNNGTT 1 0 False 867 -3.370000 0.99