-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major overhaul of the pipeline according to the changes and improvements made since the bioRxiv preprint.
- Loading branch information
Showing
312 changed files
with
9,339 additions
and
6,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
__pycache__ | ||
.snakemake | ||
.ipynb_checkpoints | ||
.sourcetrail | ||
data | ||
tools | ||
sandbox | ||
jupyter | ||
*.log | ||
*.aux | ||
publications/astronaut-telomeres-paper | ||
publications/methods-paper/figures/*-.png | ||
publications/methods-paper/figures/*/*-.png | ||
publications/methods-paper/figures/*.svg | ||
publications/methods-paper/figures/*/*.svg | ||
assets/paper/figures/*.png | ||
assets/paper/figures/*/*.png | ||
assets/paper/figures/*.svg | ||
assets/paper/figures/*/*.svg | ||
*.odt | ||
Snakefile |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
from pandas import read_fwf | ||
from io import StringIO | ||
|
||
|
||
HG38EXT_ECX = "data/references/hg38/hg38ext.fa.ecx" | ||
DATA_DIR = "data/datasets/2021" | ||
MIN_MAP_OVERLAP = 500 | ||
MIN_SUBTELOMERE_OVERLAP = 3000 | ||
MIN_TELOMERE_OVERLAP = 3000 | ||
MAX_READ_LENGTH = 100000 | ||
TARGET = "tract_anchor" | ||
N_MOTIFS_TO_PLOT = 3 | ||
MIN_CHROM_COVERAGE = 25 | ||
SMALLEST_P_VALUE = 5e-324 | ||
|
||
DATASETS = read_fwf(StringIO(str.strip(""" | ||
group subject dataset priority | ||
NA12878 HG001 11kb 1 | ||
AshkenazimTrio HG002 10kb 1 | ||
AshkenazimTrio HG002 15kb 1 | ||
AshkenazimTrio HG002 15kb_20kb 1 | ||
AshkenazimTrio HG003 15kb 1 | ||
AshkenazimTrio HG003 15kb_20kb 2 | ||
AshkenazimTrio HG004 15kb 1 | ||
AshkenazimTrio HG004 15kb_21kb 1 | ||
ChineseTrio HG005 11kb 1 | ||
ChineseTrio HG006 15kb_20kb 1 | ||
ChineseTrio HG006 hifi_google 1 | ||
ChineseTrio HG007 15kb_20kb 1 | ||
ChineseTrio HG007 hifi_google 1 | ||
"""))) | ||
|
||
"""Fully cannibalized datasets: | ||
AshkenazimTrio HG004 15kb_20kb | ||
""" | ||
|
||
DATASETS["subject_pacbio_path"] = DATASETS.apply( | ||
lambda row: "{}/PacBio/{}/{}".format(DATA_DIR, *row[:2]), axis=1, | ||
) | ||
DATASETS["dataset_pacbio_path"] = DATASETS.apply( | ||
lambda row: "{}/PacBio/{}/{}/{}".format(DATA_DIR, *row[:3]), axis=1, | ||
) | ||
|
||
wildcard_constraints: | ||
group="[^/]+", subject="[^/]+", dataset="[^/]+", name="[^/]+", kind="[^/]+", | ||
arm="[pq]_arm", | ||
|
||
|
||
def get_sam_flags(arm, target=None): | ||
if target: | ||
if arm == "p_arm": | ||
return "-f '{}' -F is_q".format(target) | ||
elif arm == "q_arm": | ||
return "-f is_q -f '{}'".format(target) | ||
else: | ||
raise ValueError("arm", arm) | ||
else: | ||
if arm == "p_arm": | ||
return "-F is_q" | ||
elif arm == "q_arm": | ||
return "-f is_q" | ||
else: | ||
raise ValueError("arm", arm) | ||
|
||
|
||
include: "assets/paper/snakefiles/longread-motifs.snake" | ||
include: "assets/paper/snakefiles/shortread-support.snake" | ||
include: "assets/paper/snakefiles/shortread-motifs.snake" | ||
include: "assets/paper/snakefiles/bonferroni.snake" | ||
include: "assets/paper/snakefiles/densityplots.snake" | ||
include: "assets/paper/snakefiles/kmerscanner-all.snake" | ||
include: "assets/paper/snakefiles/levenshtein.snake" | ||
|
||
|
||
rule all: | ||
input: | ||
rules.densityplot_all.input, | ||
rules.telbam_support_all.input, | ||
rules.kmerscanner_all_motifs_all_subjects.input, | ||
rules.kmerscanner_for_haploplots.input, | ||
rules.levenshtein_all.input, | ||
rules.repeatfinder_all_shortread.input, |
File renamed without changes.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
\documentclass{article} | ||
\usepackage[paperheight=840pt,paperwidth=700pt,margin=0in]{geometry} | ||
\usepackage[sfdefault]{roboto} | ||
\usepackage{graphicx} | ||
\usepackage{tikz} | ||
\usepackage[absolute,overlay]{textpos} | ||
\setlength{\TPHorizModule}{1in} | ||
\setlength{\TPVertModule}{1in} | ||
\begin{document} | ||
\begin{textblock}{13}(0.300,0.000)\includegraphics{Figure_2/densityplot-p_arm.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.05,0.200)\LARGE{(A)}\end{textblock} | ||
\begin{textblock}{13}(0.300,5.800)\includegraphics{Figure_2/densityplot-q_arm.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.05,6.000)\LARGE{(B)}\end{textblock} | ||
\begin{textblock}{13}(7.000,1.100)\includegraphics[width=2.30in,keepaspectratio]{Figure_2/densityplot-legend.pdf}\end{textblock} | ||
\end{document} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
\documentclass{article} | ||
\usepackage[paperheight=14.724in,paperwidth=12.108in,margin=0in]{geometry} | ||
\usepackage[sfdefault]{roboto} | ||
\usepackage{graphicx} | ||
\usepackage{tikz} | ||
\usepackage[absolute,overlay]{textpos} | ||
\setlength{\TPHorizModule}{1in} | ||
\setlength{\TPVertModule}{1in} | ||
\begin{document} | ||
\begin{textblock}{13}(-0.200,0.000)\includegraphics{Figure_4/chr2.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.200,1.727)\includegraphics{Figure_4/3ptel_1-500K_1_12_12.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.200,3.288)\includegraphics{Figure_4/4ptel_1-500K_1_12_12.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.200,7.862)\includegraphics{Figure_4/chr5.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.200,9.006)\includegraphics{Figure_4/chr9.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.200,10.067)\includegraphics{Figure_4/chr12.pdf}\end{textblock} | ||
\begin{textblock}{13}(-0.200,11.322)\includegraphics{Figure_4/17ptel_1_500K_1_12_12.pdf}\end{textblock} | ||
\begin{textblock}{13}(7.750,0) | ||
\includegraphics[width=4.000in,keepaspectratio]{Figure_4/legend.pdf} | ||
\end{textblock} | ||
\end{document} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.