Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Keywords
Repository
A matrix-like wrapper around PLINK .bed files
Basic Info
Statistics
- Stars: 18
- Watchers: 4
- Forks: 2
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
BEDMatrix
BEDMatrix is an R package that provides a matrix-like wrapper around .bed, one of the genotype/phenotype file formats of PLINK, the whole genome association analysis toolset. BEDMatrix objects are created in R by simply providing the path to a .bed file and once created, they behave similarly to regular matrices with the advantage that genotypes are retrieved on demand without loading the entire file into memory. This allows handling of very large files with limited use of memory.
This package is deliberately kept simple. For computational methods that use BEDMatrix check out the BGData package.
Example
This example uses a dummy .bed file that is bundled with this R package. It was generated using plink --dummy 500 1000 0.02 acgt --seed 4711 --out example with PLINK 1.90 beta 3.452.
To get the path to the example .bed file (system.file finds the full file names of files in packages and is only used to find the example data):
R
path <- system.file("extdata", "example.bed", package = "BEDMatrix")
To wrap the example .bed file in a BEDMatrix object:
```R m <- BEDMatrix(path)
> Extracting number of samples and rownames from example.fam...
> Extracting number of variants and colnames from example.bim...
```
To get the dimensions of the BEDMatrix object:
```R dim(m)
> [1] 50 1000
```
To extract a subset of the BEDMatrix object:
```R m[1:3, 1:5]
> snp0A snp1C snp2G snp3G snp4_G
> per0_per0 0 1 1 1 0
> per1_per1 1 1 1 1 NA
> per2_per2 1 0 0 2 0
```
Installation
Install the stable version from CRAN:
R
install.packages("BEDMatrix")
Alternatively, install the development version from GitHub:
```R
install.packages("remotes")
remotes::install_github("QuantGen/BEDMatrix") ```
Documentation
Further documentation can be found on RDocumentation.
Contributing
- Issue Tracker: https://github.com/QuantGen/BEDMatrix/issues
- Source Code: https://github.com/QuantGen/BEDMatrix
Owner
- Name: QuantGen
- Login: QuantGen
- Kind: organization
- Location: Michigan State University
- Website: https://quantgen.github.io
- Repositories: 8
- Profile: https://github.com/QuantGen
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Alexander Grueneberg | a****g@g****m | 346 |
| Alexander Grueneberg | g****t@a****o | 74 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 23
- Total pull requests: 1
- Average time to close issues: 5 months
- Average time to close pull requests: about 20 hours
- Total issue authors: 8
- Total pull request authors: 1
- Average comments per issue: 1.83
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- agrueneberg (15)
- rosieli5 (2)
- lian0090 (1)
- privefl (1)
- DavidGO464 (1)
- TabeaSchoeler (1)
- zillurbmb51 (1)
- Knox2020 (1)
Pull Request Authors
- alexviiia (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 1,085 last-month
- Total docker downloads: 38
- Total dependent packages: 9
- Total dependent repositories: 11
- Total versions: 13
- Total maintainers: 1
cran.r-project.org: BEDMatrix
Extract Genotypes from a PLINK .bed File
- Homepage: https://github.com/QuantGen/BEDMatrix
- Documentation: http://cran.r-project.org/web/packages/BEDMatrix/BEDMatrix.pdf
- License: MIT + file LICENSE
-
Latest release: 2.0.4
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.0.2 depends
- crochet >= 2.3.0 imports
- methods * imports
- LinkedMatrix * suggests
- data.table * suggests
- tinytest * suggests