Skip to content
/ hg2mm Public

Small R package to convert between human and mouse gene orthologs

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
MIT
LICENSE.mit
Notifications You must be signed in to change notification settings

daskelly/hg2mm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hg2mm

An R package to convert between human and mouse gene orthologs

Package development cheatsheet:

https://raw.githubusercontent.com/rstudio/cheatsheets/main/package-development.pdf

Orthologs file

File is from Mouse Genome Informatics and is called HOM_MouseHumanSequence.rpt. Download from https://www.informatics.jax.org/downloads/reports/index.html#homology. Browse at https://www.informatics.jax.org/downloads/reports/HOM_MouseHumanSequence.rpt. I gzipped the file to save space in repo gzip HOM_MouseHumanSequence.rpt.

Installing the package

remotes::install_github("daskelly/hg2mm")

Building the package

library(devtools)
library(roxygen2)

setwd("~/repos")
create("hg2mm")
use_r("load_data")
use_r("hg2mm")
# Export functions for users by placing @export in their
# roxygen comments

usethis::use_testthat(3)   # see https://r-pkgs.org/testing-basics.html
use_test("hg2mm")

# Import packages that your package requires to work: 
#use_package(x, type = "imports")
usethis::use_package("assertthat", "Imports")
usethis::use_package("readr", "Imports")
usethis::use_package("tibble", "Imports")
usethis::use_package("dplyr", "Imports")
usethis::use_package("tidyr", "Imports")

setwd('./hg2mm')
document()

When coming back to add new functions:

# Add functions to R/
# When referring to internal functions no need for :: or :::
# rm -f NAMESPACE
library(devtools)
document()

When working on the package locally you use:

setwd("~/repos/hg2mm")
library(devtools)
load_all()

For style see

styler::style_pkg()

About

Small R package to convert between human and mouse gene orthologs

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
MIT
LICENSE.mit

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages