Coder Social home page Coder Social logo

master_thesis's Introduction

Network analysis on TCGA data

Pipeline

Pipeline contains all the necessary steps to run a complete analysis

Run statistics

import tacos
tacos.statistics()
tacos.tacos.shuffleLabels()

Make bipartite network

from sbmtm import sbmtm
model = sbmtm()
model.make_graph_from_BoW(df)
model.save_graph("graph.xml.gz")

Run stochastic block model

interactively

docker run -it -p8888:8888 -v $(PWD):/home/filippo/files --entrypoint /bin/bash fvalle01/hsbm 2
jupyter notebook --ip0.0.0.0

as executable

docker run -it -v $(PWD):/home/filippo/files/ fvalle01/hsbm:standard 2

Note there must be a graph.xml.gz file in current working directory

TCGA

TCGA get manifest

TCGA_GetManifest creates a file called manifest.txt that is useful to download data using gdc-client download -m manifest.txt command

TCGA API

TCGA_API is useful to retrieve informations about a single file (sample)

Table

Table creation

Table_Creation reads a folder with the data downloaded with gdc-client and creates a mainTable.csv dataset

Table mining

Table_Mining is useful to extract means and vars per tissues. It stores a meanVariances.csv file useful in next step

Table Analyzer

Table_Analyzer is useful to plot expression per tissues histograms and FPKM means and distributions. Here it mean versus occurrence is created.

Table by gene type

Table_ByGeneType is useful to do analysis separating protein coding from non coding excetera

Table by tissue

Table_ByTissue perform analysis looking at different tissues

Table protein coding

Table_ProteinCoding isolate a mainTable.csv file with only protein coding genes. Creates a genes_pc.txt file with all ENSG-id that are related to a protein-coding gene

Table microRNA

Table_microRNA as above but with microRNA

Table Analyzer

Table_tfidf perform tf-idf analysis

hSBM

topics

hSBM_topics analyse topic composition

clusters

hSBM_clusters bench the performance in clustering samples

topic_dist

hSBM_topic-dist analyse topic distribution inside samples

Analysis

Use Tool for Analyse COmponents Systems

Zipf

Use Zipf.ipynb to plot Zipf and U (occurrence distribution)

Heaps

Use Heaps.ipynb to plot Heaps distibution

master_thesis's People

Contributors

fvalle1 avatar

Watchers

 avatar  avatar

Forkers

eligara

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.