Giter VIP home page Giter VIP logo

alienindexr's Introduction

AlienindexR

an R package to calculate Alien Index (AI) for genes in target species based on homolog search.

Project Status: Active - The project has reached a stable, usable state and is being actively developed.

‘AlienindexR’ calculates Alien Index (AI) for genes in target species from BLAST results between this species and donor/recipient species.

⚙️ Install AlienindexR in R (>= 3.5.0)

library(devtools)
install_github("seanchen607/AlienindexR")
library(AlienindexR)

📁 Prepare input files

To acquire the homolog search result in the correct format, use parameter below:

# for BLAST
-outfmt '6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore'

# for diamond
-outfmt 6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore

💡 Run AlienindexR

To calculate Alien Index for shared homologs in the target species with donor/recipient, use codes below to run examples:

# Read R documentation
?AlienindexR

# load input files
test_donor <- read.table(gzfile(system.file("extdata", "test_0.txt.gz", package = "AlienindexR")), header=FALSE, sep="\t")
test_recipient <- read.table(gzfile(system.file("extdata", "test_1.txt.gz", package = "AlienindexR")), header=FALSE, sep="\t")

# Calculate Alien Index
AlienindexR(test_donor, test_recipient)

AlienindexR will output a two-column data frame containing the gene names and their corresponding Alien Indexes.

📙 What is Alien Index (AI)?

Alienness takes as input the result of a BLASTp search of a whole set of predicted proteins of interest against the protein libraries of donor/recipient species. Two individual homolog searches are performed between protein sequences in the target species (as BLAST queries) and protein libraries of donor and recipient species, respectively. The blast results in tab-delimited format (12 columns) contain the best blast hit for each query.

The Alien Index (AI) is computed with the following formula:

AI = log(best_recipient_evalue + 1e-200) - log(best_donor_evalue + 1e-200)

Where the best donor e-value is the e-value from the best hit assigned to the taxonomic donor group; and best recipient e-value is the e-value from the best hit assigned to the taxonomic recipient group.

For more details, please visit Alienness.

✏️ Authors

Xiao CHEN, PhD

Marine College, Shandong University, Weihai

https://www.researchgate.net/profile/Xiao_Chen126

Twitter

If you use AlienindexR in published research, please cite the most appropriate paper(s) from this list:

  1. X Chen*, L Yang. Manuscript in preparation.

alienindexr's People

Contributors

seanchen607 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.