-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from pdimens/dev
release 0.0.4
- Loading branch information
Showing
16 changed files
with
253 additions
and
76 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,11 +1,15 @@ | ||
name: TagBot | ||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
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,22 +1,24 @@ | ||
name = "PopGenSims" | ||
uuid = "e670a858-c023-4621-870e-30d0f49b8322" | ||
authors = ["Pavel Dimens <[email protected]> and contributors"] | ||
version = "0.0.3" | ||
version = "0.0.4" | ||
|
||
[deps] | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
InvertedIndices = "41ab1584-1d38-5bbf-9106-f11c6c58b48f" | ||
PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720" | ||
PopGen = "af524d12-c74b-11e9-22a8-3b091653023f" | ||
RandomNumbers = "e6cf234a-135c-5ec9-84dd-332b85af5143" | ||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" | ||
|
||
[compat] | ||
DataFrames = "0.21, 0.22" | ||
InvertedIndices = "1.0" | ||
PooledArrays = "0.5" | ||
StaticArrays = "0.12, 1.0" | ||
PopGen = "0.0.3, 0.1, 0.4" | ||
PooledArrays = "1.0, 1.1" | ||
PopGen = "0.4" | ||
RandomNumbers = "1.4" | ||
StaticArrays = "1.0" | ||
StatsBase = "0.33" | ||
julia = "1.4" | ||
|
||
|
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,17 +1,14 @@ | ||
![logo](PopGenSims.png) | ||
[![alt text](https://img.shields.io/badge/docs-stable-informational?style=for-the-badge&logo=Read%20The%20Docs&logoColor=white)](https://pdimens.github.io/PopGen.jl/docs/simulations/simulate_samples) | ||
![logo](misc/PopGenSims.png) | ||
[![alt text](https://img.shields.io/badge/docs-stable-informational?style=for-the-badge&logo=Read%20The%20Docs&logoColor=white)](https://pdimens.github.io/PopGen.jl/docs/simulations/simulate_samples) | ||
[![alt text](https://img.shields.io/badge/slack-join%20PopGen.jl-9d72b1?style=for-the-badge&logo=slack)](https://join.slack.com/t/popgenjl/shared_invite/zt-deam65n8-DuBs2z1oDtsbBuRplJW~Pg) | ||
![build_status](https://img.shields.io/github/workflow/status/pdimens/PopGenSims.jl/CI_dev?label=Dev%20Build&logo=GitHub&style=for-the-badge) | ||
|
||
|
||
|
||
## Create population genetics simulations | ||
|
||
This package builds off of [PopGen.jl](http://github.com/pdimens/PopGen.jl) and | ||
This package builds off of [PopGen.jl](http://github.com/BioJulia/PopGen.jl) and | ||
simulates offspring that would be generated under certain conditions. With this package you can simulate the offspring of specific individuals, simulate full-sibs, half-sibs, unrelated individuals, and parent-offspring pairs for use with PopGen.jl. You can also randomly generate samples given population-specific allele frequencies. | ||
|
||
### Installation | ||
```julia | ||
julia>] | ||
|
||
pkg(v1.5)> add "http://github.com/pdimens/PopGenSims.jl" | ||
``` | ||
|
||
### Usage | ||
Documentation for PopGenSims.jl has been integrated into [the PopGen.jl docs](https://pdimens.github.io/PopGen.jl/docs/simulations/simulate_samples) | ||
![installation](misc/install.png) |
File renamed without changes
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
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,3 @@ | ||
[deps] | ||
PopGen = "af524d12-c74b-11e9-22a8-3b091653023f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
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,35 @@ | ||
module TestCross | ||
|
||
using PopGen | ||
using PopGenSims | ||
using Test | ||
|
||
cats = @nancycats ; | ||
|
||
@testset "sample_genotypes" begin | ||
@test length(PopGenSims.sample_genotype(cats.loci.genotype[30], 2)) == 2 | ||
@test eltype(PopGenSims.sample_genotype(cats.loci.genotype[30],1)) == eltype(cats.loci.genotype[30]) | ||
@test length(PopGenSims.sample_genotype(missing, 2)) == 1 | ||
@test first(PopGenSims.sample_genotype(missing, 2)) === missing | ||
end | ||
|
||
@testset "crosses" begin | ||
f1 = cross(cats, "N111", "N107", n = 10) | ||
@test typeof(f1) == PopData | ||
@test length(f1.meta.name) == 10 | ||
@test length(f1.loci.name) == 90 | ||
f1 = cross(cats, "N111", "N107", n = 10, generation = "firstgen") | ||
@test typeof(f1) == PopData | ||
@test length(f1.meta.name) == 10 | ||
@test length(f1.loci.name) == 90 | ||
f2 = cross(cats => "N111", f1 => "firstgen_offspring_10", n = 10) | ||
@test typeof(f2) == PopData | ||
@test length(f2.meta.name) == 10 | ||
@test length(f2.loci.name) == 90 | ||
f2 = cross(cats => "N111", f1 => "firstgen_offspring_10", n = 10, generation = "F2") | ||
@test typeof(f2) == PopData | ||
@test length(f2.meta.name) == 10 | ||
@test length(f2.loci.name) == 90 | ||
end | ||
|
||
end # module TestCross |
Oops, something went wrong.
583dc6a
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.
@JuliaRegistrator register branch=release
583dc6a
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.
Registration pull request created: JuliaRegistries/General/29677
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: