Skip to content

Commit

Permalink
update crisprme full repo
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelecancellieri committed Apr 21, 2021
1 parent 3006e59 commit 354381d
Show file tree
Hide file tree
Showing 56 changed files with 2,393 additions and 670 deletions.
204 changes: 201 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,202 @@
# Auto detect text files and perform LF normalization
* text=auto
## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################

* text eol=lf
# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto

# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.jsx text
*.less text
*.ls text
*.map text -diff
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
*.py text eol=lf
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text diff=css
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text diff=html

# Docker
Dockerfile text

# Documentation
*.ipynb text
*.markdown text diff=markdown
*.md text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

# Templates
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.tmpl text
*.tpl text
*.twig text
*.vue text

# Configs
*.cnf text
*.conf text
*.config text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
package.json text eol=lf
package-lock.json text -diff
pnpm-lock.yaml text eol=lf -diff
yarn.lock text -diff
*.toml text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text

# Heroku
Procfile text

# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.gifv binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary

# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# Executables
*.exe binary
*.pyc binary

# RC files (like .babelrc or .eslintrc)
*.*rc text

# Ignore files (like .npmignore or .gitignore)
*.*ignore text
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Gencode/*
Cache/*
*nohup*
Annotations/*
PAMs/*
samplesIDs/*
guides/*
22 changes: 19 additions & 3 deletions PostProcess/CRISPRme_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,28 @@
#import seaborn as sns
import sys
import matplotlib
import warnings

# ignore all warnings
warnings.filterwarnings("ignore")

# set matplotlib to not use X11 server
matplotlib.use('Agg')

# # Read file
# df = pd.read_csv(sys.argv[1], sep="\t",
# index_col=False, na_values=['n'], nrows=1200)
# out_folder = sys.argv[2]

# # Make index column that numbers the OTs starting from 1
# df = df.reset_index()
# df["index"] += 1

# Read file
df = pd.read_csv(sys.argv[1], sep="\t", na_values=['n'], nrows=1200)
df = pd.read_csv(sys.argv[1], sep="\t",
index_col=False, na_values=['n'], nrows=1200)
out_folder = sys.argv[2]
guide = sys.argv[3]

# Make index column that numbers the OTs starting from 1
df = df.reset_index()
Expand Down Expand Up @@ -110,7 +125,8 @@

# Save
plt.tight_layout()
plt.savefig(out_folder+"CRISPRme_top_100_linear_annotated_for_supplement.png")
plt.savefig(
out_folder+f"CRISPRme_top_100_linear_annotated_for_supplement_{guide}.png")
plt.clf()


Expand Down Expand Up @@ -163,5 +179,5 @@

# Save
plt.tight_layout()
plt.savefig(out_folder+"CRISPRme_top_1000_log_for_main_text.png")
plt.savefig(out_folder+f"CRISPRme_top_1000_log_for_main_text_{guide}.png")
plt.clf()
Loading

0 comments on commit 354381d

Please sign in to comment.