Skip to content

Aitslab/ShortProject2020

 
 

Repository files navigation

Short Project in Bioinformatics-Lund University

Project scripts description

My short project entitled "Functional annotation of potential regulators of lysosomes and cell death identified in a genome-wide screen " involved scripts that carry out two major tasks.The first task primarly involves data download and analysis of genes collected from 12 databases related to autophagy,cell death,and lysosomes. However, the second task involves functional annotation of genes obtained from a genome-wide screen and basic statistical analysis of knockdown data. Scripts of the above tasks require the installation and import of various packages(see packages.py) and Matplotlib library(v3.1.1).
Some databases were available for download(see datadownload.py), while others were not and therefore the htmls were downloaded (datadownload.py) and webscraping scripts were written to parse them(see webscraping.py). Other scripts include parse.py, mergeAutophagy.py,mergeCellDeath.py, mergeLysosome.py,overlap.py,screenCheck.py, plotting.py,MappingToUniprot.py, and MappingToLists.py.

Dependencies

  • python v3.7.4
  • wget
  • matplotlib v3.1.1
  • pandas
  • beautifulsoup4
  • owlready2
  • goatools
  • lxml
  • glob
  • openpyxl
  • json
  • tqdm (install with conda install -c conda-forge tqdm)

All the scripts were run using python.

Main Scripts

  • packages.py
    This script imports the packages used in this short project.

  • datadownload.py
    Involves the codes written for downloading the databases that were available for download or the htmls of databases that were not available for download.
    Some codes should be run a long with the correct packages from packages.py.

Data from Uniprot, The CASBAH, The Human Lysosome Gene Database and The Mouse Lysosome Gene Database had to be downloaded manually (see below in step-by-step):

  • webscraping.py
    Runs codes written for parsing databases that were not available for download. HTML scraping was the method used in this case. Some scraping codes were followed by another code to fix the data structure in the database. Note that some steps have to be performed manually, see comments in the code

  • THANATOSdownload.py
    Downloads the gene pages from the THANATOS database (alternative to script in notebook)

  • parse.py
    Involves codes written for parsing the databases that were available for download in order to extract necessary fields.

Analysis Scripts

  • mergeAutophagy.py, mergeCellDeath.py, mergeLysosome.py
    Run codes written for merging the databases from each category in order to collect all available information related to autophagy, cell death and lysosomes.

  • overlap.py
    Runs codes written for finding the overlap between the end files of autophagy-cell death, autophagy-lysosome , cell death-lysosome as well as autophagy-lysosome-cell death.

  • screenCheck.py
    Runs codes written to parse a whole genome screen of knockdown data of all known human genes. The script will split the screen file to control and sample files. These belong to genes that showed at least 15% reduction in cell count upon the knockdown in replicate1 and/or replicate2.

  • plotting.py
    Runs codes that were used in matplotlib library to plot positive- and negative control-counts (as a part of the statistical evaluation of false positives and false negatives) as well as the codes written to get the counts that are used in generating the plots.

  • MappingToUniprot.py
    Runs codes for the files whose entrez IDs were mapped to uniprot in order to get the accession numbers for genes in the original screen file.

  • MappingToLists.py
    Runs codes written for for matching the screen hits with the autophagy, cell death, and lysosome lists.

Usage

All codes were written in Jupyter notebook (v6.0.1). The name or the path of the file should be supplied and the codes can be simply run with ctrl+enter OR alt+enter.

Step-by-step

Step 1: preparing the environment

  • create new environmente with conda
  • install wget: pip install wget
  • install matplotlib: conda install matplotlib==3.1.1
  • install pandas: conda install pandas
  • install beautifulsoup4: conda install beautifulsoup4
  • install owlready2: conda install -c conda-forge owlready2
  • install goatools: pip install goatools
  • install lxml: pip install lxml
  • install openpyxl: conda install -c anaconda openpyxl

Step 2: download data

  • run packages.py to import packages and then datadownload.py to get the raw data, place data in folder "rawdata"
  • download Uniprot data and data from Human Autophagy Gene Database and Mouse Autophagy Gene Database manually and the proteome data from Itzhak 2016 and 2017
Uniprot

go to https://www.uniprot.org/uniprot/?query=lysosome&sort=score and https://www.uniprot.org/uniprot/?query=autophagosome&sort=score, click on download and choose tab-separated (release 2020_02). Alternative data source (not in this project): search for autophagosome or lysosome in subcellular locations https://www.uniprot.org/uniprot/?query=locations:(location:%22Autophagosome%20[SL-0023]%22) and https://www.uniprot.org/uniprot/?query=locations:(location:%22Lysosome%20[SL-0158]%22), click download and choose tab-separted

The CASBAH

go to http://bioinf.gen.tcd.ie/cgi-bin/casbah/casbah.pl, in the bottom change the table rows number to fit the number of entries (e.g. 777) BUT leave the data rows number at 50, click enter (check that only one table is shown), then save the html file as The_CASBAH.html

Human Protein Atlas

Download these files:

https://www.proteinatlas.org/search/subcell_location%3ALysosomes?format=tsv save as proteinAtlasSubcellLysosomes.tsv

https://www.proteinatlas.org/search/subcell_location%3AVesicles?format=tsv save asproteinAtlasSubcellVesicles.tsv

The Human Lysosome Gene Database and The Mouse Lysosome Gene Database

go to http://lysosome.unipg.it/index.php and http://lysosome.unipg.it/mouse.php, click query and then save html page with results as TheHumanLysosomeGene.html and TheMouseLysosomeGene.html. Alternatively (not in this project), tick download results in delimited format and then click query to get a csv file.

Hela Spatial Proteome (Itzhak 2016) http://mapofthecell.biochem.mpg.de/index.html

download the Summary file: http://mapofthecell.biochem.mpg.de/HeLa_Subcell_Localization_Interactive_Database.xlsx and save as 'Hela_Subcell_localization_Itzhak2016.xlsx'

Hela and Mouse Neuron Spatial Proteome (Itzhak 2017) https://doi.org/10.1016/j.celrep.2017.08.063

download https://www.cell.com/cms/10.1016/j.celrep.2017.08.063/attachment/235fbebe-76e4-48f9-a1a0-aa8c49d68426/mmc2.xlsx

and https://www.cell.com/cms/10.1016/j.celrep.2017.08.063/attachment/8fea18cb-44bf-40ee-a7ff-bb958bea8fb0/mmc3.xlsx afterwards copy data to a new excel file and then save as .csv files

Step 3: parse html files

  • run webscraping.py to parse data from BCL2 database files, The CASBAH, The Human Autophagy Database, The Human Autophagy Gene Database and The Mouse Autophagy Gene Database (note that some steps have to be performed manually)

Step 4: parse the other database files

  • run parse.py

Alternative:

  • install jupyterlab or notebook, e.g. 'conda install -c conda-forge jupyterlab (if you want to look at the notebook)
  • launch jupyterlab from the anaconda/miniconda prompt: jupyter lab

Other Information

  • Versions and release dates of databases were recorded if they were available, otherwise the date of data collection was written.
  • All unreviewed, obsolete, and unmapped-data files that were obtained upon mapping our data to UniProt are found in "Incomplete_Mappings" folders. The final and reviewed-data files are saved to "Final_Databases" folder.
  • 3 files were generated for the sample files in the screen analysis and they correspond to the 3 thresholds used in the study to assess false positives and false negatives.

References

Autophagy Database

http://www.tanpaku.org/autophagy/

dx.doi.org/10.1093/nar/gkq995

Bcl2 Database

https://academic.oup.com/database/article/doi/10.1093/database/bau013/2633796

HAMdb

https://jcheminf.biomedcentral.com/articles/10.1186/s13321-018-0289-4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 88.1%
  • Python 11.9%