8000 GitHub - reactome/pathway-log-analysis
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

reactome/pathway-log-analysis

Repository files navigation

#2015 pre-SAB Log analysis

  1. get log info for Aug 2014 - present

    grep REST /usr/local/gkb/website/logs/extended_log | grep Diagram | grep PathwayBrowser

  • NOTE: some ad hoc filtering (grep, head, tail) to use only dates from Aug-April
  1. get older (pre Aug, 2014) log info from archive

    grep REST /nfs/reactome/reactome/archive/old_reactome_backup/Reactome/website_3_0/GKB/website/logs/extended_log
    | grep Diagram | grep PathwayBrowser

  • NOTE: some ad hoc filtering (grep, head, tail) to get only April 2014 - July 2014
  1. getting the hits by IP

    zcat last_year.txt.gz | perl -pe 's/^(\S+).+pathwayDiagram/(\d+).+$/$1\t$2/' > IP_hits.txt

  2. hit counts

    cut -f2 IP_hits.txt | sort | uniq -c | sort -nr | perl -pe 's/^\s+//' | perl -pe 's/\s+/\t/' > hit_counts.txt

  3. unique event IDs

    cut -f2 hit_counts.txt | sort -u > unique_hits.txt

  4. pathway information (also filtering out non-pathway hits)

    perl pathway_info.pl username password unique_hits.txt > pathway_info.txt

  5. flattened pathway hierarchy for all species seen in log

    cut -f2 pathway_info.txt | sort -u | perl flatten_pathway_hierarchy.pl > pathway_hierarchy.txt

  6. generate reports

    perl analyze_pathway_hits.pl

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0