-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Sampling without replacement option for simgenotype #194
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6a914b2
Start of no replacement option for simgenotype
mlamkin7 9a5e342
Added --no-replacement flag
mlamkin7 d18ed06
main and test_outputvcf files reformatted
mlamkin7 56d771d
Update sim_genotype.py
mlamkin7 5e3f81b
Update sim_genotype.py
mlamkin7 c1f2072
Fixed typo
mlamkin7 199dc93
Fixed typo interlen -> inter_len
mlamkin7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
HG00096 CEU | ||
HG00097 YRI | ||
HG00099 YRI | ||
HG00100 YRI | ||
HG00101 YRI |
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 @@ | ||
Sample_1_1 | ||
YRI 1 59423086 85.107755 | ||
CEU 1 239403765 266.495714 | ||
YRI 2 229668157 244.341689 | ||
YRI 23 229668157 244.341689 | ||
Sample_1_2 | ||
YRI 1 59423086 85.107755 | ||
YRI 1 239403765 266.495714 | ||
CEU 2 229668157 244.341689 | ||
YRI 23 229668157 244.341689 | ||
Sample_2_1 | ||
CEU 1 59423086 85.107755 | ||
YRI 1 239403765 266.495714 | ||
CEU 2 229668157 244.341689 | ||
YRI 23 229668157 244.341689 | ||
Sample_2_2 | ||
CEU 1 59423086 85.107755 | ||
CEU 1 239403765 266.495714 | ||
YRI 2 229668157 244.341689 | ||
YRI 23 229668157 244.341689 |
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,11 @@ | ||
##fileformat=VCFv4.2 | ||
##filedate=20180225 | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##contig=<ID=chr1> | ||
##contig=<ID=chr2> | ||
##contig=<ID=chrX> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT HG00096 HG00097 HG00099 HG00100 HG00101 | ||
chr1 10114 1:10114:T:C T C . . . GT 1|1 1|1 0|0 0|0 0|0 | ||
chr1 59423090 1:59423090:A:G A G . . . GT 0|0 0|0 1|1 1|1 1|1 | ||
chr2 10122 2:10122:A:G A G . . . GT 0|0 0|0 1|1 1|1 1|1 | ||
chrX 10122 X:10122:A:G A G . . . GT 0|0 0|0 1|1 1|1 1|1 |
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 @@ | ||
Sample_1_1 | ||
CEU 1 59423086 85.107755 | ||
CEU 1 239403765 266.495714 | ||
YRI 2 229668157 244.341689 | ||
YRI 23 229668157 244.341689 | ||
Sample_1_2 | ||
CEU 1 59423086 85.107755 | ||
CEU 1 239403765 266.495714 | ||
CEU 2 229668157 244.341689 | ||
CEU 23 229668157 244.341689 | ||
Sample_2_1 | ||
CEU 1 59423086 85.107755 | ||
CEU 1 239403765 266.495714 | ||
CEU 2 229668157 244.341689 | ||
YRI 23 229668157 244.341689 | ||
Sample_2_2 | ||
CEU 1 59423086 85.107755 | ||
CEU 1 239403765 266.495714 | ||
YRI 2 229668157 244.341689 | ||
CEU 23 229668157 244.341689 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this scale well for large numbers of samples? I recall that python dynamically allocates memory for list items, even within list comprehensions
so it might have to repeatedly make copes whilst constructing this list?
Honestly, it might not even matter in terms of time, compared to other things in our code. I just wanted to confirm