Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/BioJulia/PopGenCore.jl into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Oct 29, 2021
2 parents 910be19 + edda414 commit 151f98e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Iterators.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export skipinf, skipnan, skipinfnan, nonmissings
export skipinf, skipnan, skipinfnan
export partitionarray
export pairwisepairs, simpairs

Expand Down Expand Up @@ -105,4 +105,4 @@ skipnan(itr) = Iterators.filter(!isnan, itr)
Return an iterator over the elements in `itr` skipping `NaN`, `Inf` and `-Inf` values.
See the docstrings of `skipinf` and `skipnan` more details.
"""
skipinfnan(itr) = Iterators.filter(x -> (isfinite(x) & !isnan(x)), itr)
skipinfnan(itr) = Iterators.filter(x -> (isfinite(x) & !isnan(x)), itr)
5 changes: 2 additions & 3 deletions src/PopDataWrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ end

"""
genotypes(data::PopData, samplelocus::String)
Return a vector of all the genotypes of a sample (or locus) in a `PopData` object. To return a
single genotype at a locus, see `genotype`.
Return a vector of all the genotypes of a sample (or locus) in a `PopData` object.
```
cats = @nancycats
genotypes(cats, "N115")
Expand Down Expand Up @@ -137,4 +136,4 @@ View unique population ID's and/or their counts in `PopData`.
pops = countmap(data.sampleinfo.population)
return DataFrame(:population => uniq_pops, :count => [pops[i] for i in uniq_pops])
end
end
end

2 comments on commit 151f98e

@pdimens
Copy link
Collaborator Author

@pdimens pdimens commented on 151f98e Nov 1, 2021

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

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.5.1 -m "<description of version>" 151f98ed86212afbeb0d7241c4ad5bda05220267
git push origin v0.5.1

Please sign in to comment.