Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Runda-Xu authored Jun 14, 2023
1 parent 7763d7e commit de24e3f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 24 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ offtracker_config.py -t 8 -g hg38 --blacklist hg38 \
-r /Your_Path_To_Reference/hg38_genome.fa \
-i /Your_Path_To_Reference/hg38_genome.chromap.index \
-f /Your_Path_To_Fastq \
-o /Your_Path_To_Output \ # Default is outputting to /Your_Path_To_Fastq
--subfolder 0 # If different samples are in seperate folders, set this to 1
-o /Your_Path_To_Output \
--subfolder 0

# --subfolder: If different samples are in seperate folders, set this to 1
# -o: Default is outputting to /Your_Path_To_Fastq

# Run the snakemake program
cd /Your_Path_To_Fastq
Expand All @@ -91,13 +94,17 @@ Analyzing the off-target sites
```bash
# In this part, multiple samples in the same condition can be analyzed in a single run by pattern recogonization of sample names

offtracker_analysis.py -g hg38 --name "HEK4" \ # the same as that in offtracker_candidates.py
--exp 'Cas9_HEK4.*293' \ # add one or multiple patterns of file name in regex
--control 'control' \ # add one or multiple patterns of file name in regex
offtracker_analysis.py -g hg38 --name "HEK4" \
--exp 'Cas9_HEK4.*293' \
--control 'control' \
--outname 'Cas9_HEK4_293' \
-f /Your_Path_To_Output \
--seqfolder /Your_Path_To_Candidates

# --name: the same as that in offtracker_candidates.py
# --exp/--control: add one or multiple patterns of file name in regex


# This step will generate Trackseq_result_{outname}.csv
# Intermediate files are saved in ./temp folder, which can be deleted
# Keeping the intermediate files can make the analysis faster if involving previously analyzed samples (e.g. using the same control samples for different analyses)
Expand Down
2 changes: 1 addition & 1 deletion offtracker/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.0.2"
18 changes: 0 additions & 18 deletions offtracker/mapping/Snakefile_Trackseq
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ name2 = nametype + '.' + suffix

import os

#所有的输出列表

rule all:
input:
Expand Down Expand Up @@ -174,20 +173,3 @@ rule bdg2bw_rv:
shell:
"{params.dir_script}/bedGraphToBigWig {input} {params.gl} {output}"

#rule bwAdd:
# input:
# fw=os.path.join(output_dir,"{sample}.fw.scaled.bw"),
# rv=os.path.join(output_dir,"{sample}.rv.scaled.bw")
# threads:
# _threads
# output:
# os.path.join(output_dir,"{sample}." + BinSize + ".add.bdg")
# shell:
# """
# bigwigCompare --binSize {BinSize} -p {threads} --verbose -o {output} \
# --outFileFormat bedgraph \
# --bigwig1 {input.fw} \
# --bigwig2 {input.rv} \
# --operation add
# """

0 comments on commit de24e3f

Please sign in to comment.