Coder Social home page Coder Social logo

ksear's Introduction

KSEAr

KSEAr is an R package developed as an adaptation of the KSEA Shiny app, originally created by casecpb. This version has been transformed from a Shiny application into a set of R functions for batch processing, making it more suitable for automated workflows and large-scale analyses.

Acknowledgments

We would like to acknowledge the original work done by casecpb in the KSEA project. The source code and example data in KSEAr have been adapted from the KSEA Shiny app, and we are thankful to the original authors for their foundational contributions to the field.

Key Modifications

  • Conversion to R Functions: The original Shiny app interface has been restructured into R functions, allowing for direct and flexible scripting in R. This change facilitates batch processing and integration into automated data analysis pipelines.
  • Updated Visualization Style: We have updated the visual presentation of the KSEA results, offering a more contemporary and insightful visualization approach that enhances the interpretability of the analysis.

Purpose

KSEAr is designed to perform Kinase-Substrate Enrichment Analysis (KSEA) in a more programmatically accessible manner, making it easier to integrate KSEA into larger bioinformatics workflows and to perform the analysis on a larger scale.

How to Install

install.packages("ggplot2")# ggplot2 v3.5.0
install.packages("remotes")
remotes::install_github("Chuanping-Zhao/KSEAr")

use

rm(list = ls())
library(tidyverse)
library(KSEAr)

#loading data
files_input <- fs::dir_ls("inputfile",recurse = TRUE,glob = "*.csv")
input <-  map_dfr(files_input,read_csv)
head(input,3)
#A tibble: 3 ร— 6
  Protein Gene  Peptide           Residue.Both     p    FC
  <chr>   <chr> <chr>             <chr>        <dbl> <dbl>
1 Q15019  SEPT2 IYHLPDAESDEDEDFK  S218         0.324 1.06 
2 Q9UHD8  SEPT9 RSFEVEEVETPNSTPPR S30          0.258 1.43 
3 Q9UHD8  SEPT9 SFEVEEVETPNSTPPRR T42;S30      0.297 0.630
result <- KSEA(input_data = input,#a dataframe
               networkin_score_cutoff = 1,# The filter score of networkin datsets(if selected)
               substrate_count_cutoff = 4,# The counts of substrate
               threshold_type = "fdr",# The threshold used: 'fdr' or 'p'
               threshold_cutoff = 0.05, The cutoff of 'fdr' or 'p' 
               dataset = "PSP_networkin")#datasets:'PSP_networkin' or 'PSP'
enrichresults <- result[[1]]#resulst
enrich_plot <- result[[2]]#plotting

image

ksear's People

Contributors

chuanping-zhao 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.