-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a34dad0
commit 3fa5000
Showing
39 changed files
with
122 additions
and
380,619 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
File renamed without changes.
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,2 @@ | ||
chr_chr/ | ||
chr_nuclear_landmarks/ |
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,119 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "3ef4e4c3-bbff-4170-9390-b51feae5efb6", | ||
"metadata": {}, | ||
"source": [ | ||
"## Import the necessary packages" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "be874cb0-b8ff-4af7-ac51-7fd3c914291a", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import sys\n", | ||
"sys.path.insert(1, '../../openNucleome/utility')\n", | ||
"import numpy as np\n", | ||
"import MDAnalysis as mda\n", | ||
"import sklearn.cluster as sk\n", | ||
"import matplotlib.pyplot as plt\n", | ||
"import copy\n", | ||
"import subprocess\n", | ||
"from joblib import Parallel, delayed\n", | ||
"import scipy.stats\n", | ||
"import os\n", | ||
"from DamID_TSASeq_calculation import process_traj_win" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7b3ae3b2-9dc7-4d74-a860-0b35631f3c28", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"sigma_tanh = 4\n", | ||
"rc_tanh = 0.75\n", | ||
"\n", | ||
"N_chr_beads = 60642\n", | ||
"\n", | ||
"first_frame = 500\n", | ||
"N_nucleolus_particles = 300\n", | ||
"N_speckles_particles = 1600\n", | ||
"N_lamina_particles = 8000\n", | ||
"radius_nucleus = 13.0\n", | ||
"\n", | ||
"\"\"\"Info files\"\"\"\n", | ||
"gLength = np.loadtxt(\"mol_info/gLengthFile.txt\",dtype=int)\n", | ||
"maternalIdx = np.loadtxt(\"mol_info/maternalIdxFile.txt\",dtype=int)\n", | ||
"paternalIdx = np.loadtxt(\"mol_info/paternalIdxFile.txt\",dtype=int)\n", | ||
"\"\"\"\"\"\"" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d5c1c187-a093-40c5-b67f-94ffc8c8806e", | ||
"metadata": {}, | ||
"source": [ | ||
"## Compute the DamID and TSASeq" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "29222bbb-8773-4571-ac97-5756c1570785", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"iter_num = int(sys.argv[1])\n", | ||
"win_to_run = int(sys.argv[2])\n", | ||
"\n", | ||
"process_traj_win(win_to_run)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "15f5efce-885f-4716-80fa-7e66a8333457", | ||
"metadata": {}, | ||
"source": [ | ||
"## Compute the chromosome contact probabilities" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7dd7e0df-e4aa-491f-842a-65f44879c955", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"subprocess.call([\"gfortran -o chromsome_contact_calculation ../../openNucleome/utility/chromsome_contact_calculation.f90\"],shell=True,stdout=subprocess.PIPE)\n", | ||
"subprocess.call([\"./chromsome_contact_calculation ../HFF_100KB/SphericalNucleus/DUMP_FILE.dcd 501 -1 ./contact_prob/ 1 counter.txt\"],shell=True,stdout=subprocess.PIPE)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.8" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.