Skip to content

Commit

Permalink
update names
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Mar 3, 2022
1 parent 1c48b57 commit 17aade2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/PopGenSims.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Documentation: https://biojulia.net/PopGen.jl/
- `cross(popdata => parent1, popdata => parent2, ...) to cross two parents from different PopData (e.g. backcross)
## Simulate siblingship
- `simulate_sibship(popdata, fullsib = , halfsib = , unrelated = , ...)` to simulate breeding events generating pairs of individuals of known kinship.
- `simulatekin(popdata, fullsib = , halfsib = , unrelated = , ...)` to simulate breeding events generating pairs of individuals of known kinship.
"""
module PopGenSims

Expand Down
10 changes: 5 additions & 5 deletions test/sibship.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@ cats = @nancycats ;

@testset "Sibship Simulations" begin
@testset "all sibship" begin
sims_all = simulate_sibship(cats, fullsib = 50, halfsib = 50, unrelated = 50, parentoffspring = 50)
sims_all = simulatekin(cats, fullsib = 50, halfsib = 50, unrelated = 50, parentoffspring = 50)
@test sims_all isa PopData
@test sims_all.metadata.samples == 400
@test length(sims_all.genodata.name) == 3600
end

@testset "unrelated" begin
sims_un = simulate_sibship(cats, unrelated = 50)
sims_un = simulatekin(cats, unrelated = 50)
@test sims_un isa PopData
@test sims_un.metadata.samples == 100
@test length(sims_un.genodata.name) == 900
end

@testset "halfsib" begin
sims_hs = simulate_sibship(cats, halfsib = 50)
sims_hs = simulatekin(cats, halfsib = 50)
@test sims_hs isa PopData
@test sims_hs.metadata.samples == 100
@test length(sims_hs.genodata.name) == 900
end

@testset "fullsib" begin
sims_fs = simulate_sibship(cats, fullsib = 50)
sims_fs = simulatekin(cats, fullsib = 50)
@test sims_fs isa PopData
@test sims_fs.metadata.samples == 100
@test length(sims_fs.genodata.name) == 900
end

@testset "parent offspring" begin
sims_po = simulate_sibship(cats, parentoffspring = 50)
sims_po = simulatekin(cats, parentoffspring = 50)
@test sims_po isa PopData
@test sims_po.metadata.samples == 100
@test length(sims_po.genodata.name) == 900
Expand Down

4 comments on commit 17aade2

@pdimens
Copy link
Owner Author

@pdimens pdimens commented on 17aade2 Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register branch=dev

@JuliaRegistrator
Copy link

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/55895

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:

git tag -a v0.3.1 -m "<description of version>" 17aade2ac240b622dc2d669ecbee9e5649111877
git push origin v0.3.1

@pdimens
Copy link
Owner Author

@pdimens pdimens commented on 17aade2 Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register branch=dev

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/55895

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:

git tag -a v0.3.1 -m "<description of version>" 17aade2ac240b622dc2d669ecbee9e5649111877
git push origin v0.3.1

Please sign in to comment.