Skip to content

Commit

Permalink
Bugfix: Use at most max_num_snps
Browse files Browse the repository at this point in the history
  • Loading branch information
enormandeau committed Apr 12, 2023
1 parent b781494 commit 3882768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 01_scripts/05_explore_features.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ subset = dd[dd$MappingFlag < 2000 &

# Plot variables of interest
set.seed(123)
subset.random = subset[sample(nrow(subset), 10000)]
subset.random = subset[sample(nrow(subset), min(nrow(subset), 10000))]

png("positions.features.png", width=1000, height=1000)
plot(subset.random, col="#00000011", pch=19)
Expand Down

0 comments on commit 3882768

Please sign in to comment.