-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compartmentalize simulation code and squash overwrite warnings
- Loading branch information
Showing
17 changed files
with
56 additions
and
40 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
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
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
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
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,26 +1,29 @@ | ||
print("Loading simulation framework...") | ||
""" | ||
A pooled genetic screen simulator | ||
""" | ||
module CRISPulator | ||
|
||
packages = [:StatsBase, | ||
:Distributions, | ||
:DataFrames, | ||
:HypothesisTests, | ||
:Iterators] | ||
export ScreenSetup, FacsScreen, GrowthScreen | ||
export Library, CRISPRi, CRISPRn | ||
export KDPhenotypeRelationship | ||
export run_exp | ||
export auroc, venn, auprc, signal, noise | ||
|
||
for package in packages | ||
eval(:(using $package)) | ||
eval(:(@everywhere using $package)) | ||
end | ||
using StatsBase | ||
using Distributions | ||
using DataFrames | ||
using HypothesisTests | ||
using Iterators | ||
using Compat | ||
import Compat: UTF8String, ASCIIString, view | ||
|
||
# Load all simulations files on all workers | ||
@everywhere function include_all(curr_dir) | ||
filenames = ["common.jl", "utils.jl", "library.jl", "transfection.jl", | ||
"selection.jl", "sequencing.jl", "processing.jl", | ||
"designs.jl"] | ||
for filename in filenames | ||
include(joinpath(curr_dir, filename)) | ||
end | ||
end | ||
curr_dir = Base.source_dir() | ||
@eval @everywhere include_all($curr_dir) | ||
include("common.jl") | ||
include("utils.jl") | ||
include("library.jl") | ||
include("transfection.jl") | ||
include("selection.jl") | ||
include("sequencing.jl") | ||
include("processing.jl") | ||
include("designs.jl") | ||
|
||
println("Done.") | ||
end |
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import CRISPulator: Barcode, select | ||
|
||
function testselection(setup) | ||
N = setup.num_genes | ||
guides = Barcode[] | ||
|