extendedSequences length is not the required for DeepCpf1 (34bp)
1
0
Entering edit mode
Miguel • 0
@a6d8df64
Last seen 2.4 years ago
Spain

Hi,

I'm using CRISPRseek dev v. 1.35.2, installed from github (hukai916/CRISPRseek).

I wanted to calculate the CFD, and the grna efficacy of a Cas12 sgRNA (my_sgrna.fa file) using Deep Cpf1.

my_sgrna.fa, TTTT (PAM) + sgRNA (20bp):

>sgrna1
TTTTTGTCTTTAGACTATAAGTGC

Command:

offTargetAnalysis(inputFilePath = "my_sgrna.fa",
                  format = "fasta",
                  header = FALSE,
                  exportAllgRNAs = "fasta",
                  findgRNAs = FALSE,
                  findgRNAsWithREcutOnly = FALSE,
                  findPairedgRNAOnly = FALSE,
                  annotatePaired = FALSE,
                  annotateExon = TRUE,
                  scoring.method = "CFDscore",
                  min.score = 0,
                  topN = 10,
                  topN.OfftargetTotalScore = 10,
                  calculategRNAefficacyForOfftargets = F,
                  PAM = "TTTN",
                  PAM.pattern = "^TTTN",
                  PAM.location = "5prime",
                  allowed.mismatch.PAM = 2,
                  baseBeforegRNA = 8,
                  PAM.size = 4,
                  gRNA.size = 20,
                  baseAfterPAM = 26,
                  overlap.gRNA.positions = c(19, 23),
                  subPAM.position = c(1,2),
                  rule.set = "DeepCpf1",
                  chromToSearch = c("chr1"),
                  max.mismatch = 4,
                  BSgenomeName = BSgenome.Hsapiens.UCSC.hg19,
                  txdb = TxDb.Hsapiens.UCSC.hg19.knownGene,
                  orgAnn = org.Hs.egSYMBOL,
                  enable.multicore = T,
                  n.cores.max = 1,
                  outputDir = ".",
                  overwrite = T)

log gives a Warning, that apparently the extended Sequence is not right:

Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: ‘BiocGenerics’
Loading required package: Biostrings
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: ‘S4Vectors’
Loading required package: IRanges
Loading required package: XVector
Attaching package: ‘Biostrings’
Loading required package: BSgenome
Loading required package: GenomeInfoDb
Loading required package: GenomicRanges
Loading required package: rtracklayer
Attaching package: ‘rtracklayer’
Loading required package: GenomicFeatures
Loading required package: AnnotationDbi
Loading required package: Biobase

[...]

Validating input ...
>>> Finding all hits in sequence chr1 ...
>>> DONE searching
Building feature vectors for scoring ...
Calculating scores ...
Annotating, filtering and generating reports ...
Done annotating
Add RE information...
write gRNAs to bed file...
Scan for REsites in flanking region...
Done. Please check output files in directory 
 ./ 
Warning message:
In deepCpf1(extendedSequence = extendedSequence, chrom_acc = chrom_acc) :
  None of the extendedSequences has length of 34 which is required for DeepCpf1 algorithm!

Summary.xls gives a NA for the sgRNA efficacy:

names   forViewInUCSC   extendedSequence    gRNAefficacy    gRNAsPlusPAM    top5OfftargetTotalScore top10OfftargetTotalScore    top1Hit.onTarget.MMdistance2PAM topOfftarget1MMdistance2PAM topOfftarget2MMdistance2PAM topOfftarget3MMdistance2PAM topOfftarget4MMdistance2PAM topOfftarget5MMdistance2PAM topOfftarget6MMdistance2PAM topOfftarget7MMdistance2PAM topOfftarget8MMdistance2PAM topOfftarget9MMdistance2PAM topOfftarget10MMdistance2PAM    REname  uniqREin200 uniqREin100
grna1   chr1:212469989-212470012    GTGCCTGCTTTTTGTCTTTAGACTATAAGTGCTTTGAGACCCAAGACCATATTTTCCT  NA  TTTNTGTCTTTAGACTATAAGTGC    1.19845 1.369338    NMM 2,11,12,17  2,4,9,17    2,4,9,19    1,2,5,15    5,9,10,20   4,9,13,19   2,9,11,13   12,13,14,20 9,11,13,20  4,13,14,19

This is due to the extendedsequence being 8 bases + 4 bases (PAM) + 20 bases (sgRNA) + 26 bases != 34 bases, instead of the 4 + 4 + 20 + 6 = 34 required for DeepCpf1 to work...

  • GTGCCTGC prePAM
  • TTTT PAM
  • TGTCTTTAGACTATAAGTGC sgRNA
  • TTTGAGACCCAAGACCATATTTTCCT postsgRNA

According to the manual, the flags in the command should result in 34 bases, but they don't..

                  baseBeforegRNA = 8, # 4 + PAM (4)
                  PAM.size = 4,
                  gRNA.size = 20,
                  baseAfterPAM = 26,  # sgRNA (20) + 6

which I expected to sum 4 + 4 + 20 + 6 = 34

Is this a bug, or am I doing something wrong?

UPDATE Actually, it does not matter the values set in baseBeforegRNA nor baseAfterPAM flags, e.g. setting them both as '1' yields the same result as the one above, and the same extendedSequence, so there must be a bug.

Thanks a lot, Miguel

CRISPRseek • 721 views
ADD COMMENT
0
Entering edit mode
Miguel • 0
@a6d8df64
Last seen 2.4 years ago
Spain

It works with with this R environment:

R version 4.1.3
 [1] org.Hs.eg.db_3.12.0                    
 [2] TxDb.Hsapiens.UCSC.hg19.knownGene_3.2.2
 [3] GenomicFeatures_1.42.3                
 [4] AnnotationDbi_1.52.0                  
 [5] Biobase_2.54.0                        
 [6] BSgenome.Hsapiens.UCSC.hg19_1.4.3      
 [7] BSgenome_1.62.0                        
 [8] rtracklayer_1.54.0                    
 [9] GenomicRanges_1.46.1                  
[10] CRISPRseek_1.37.2                      
[11] Biostrings_2.62.0                      
[12] GenomeInfoDb_1.30.1                    
[13] XVector_0.34.0                        
[14] IRanges_2.28.0                        
[15] S4Vectors_0.32.4                      
[16] BiocGenerics_0.40.0                    
[17] readr_2.1.2                            
 [1] bitops_1.0-7                matrixStats_0.62.0        
 [3] bit64_4.0.5                 progress_1.2.2            
 [5] httr_1.4.3                  rprojroot_2.0.3            
 [7] tools_4.1.3                 utf8_1.2.2                
 [9] R6_2.5.1                    DBI_1.1.3                  
[11] rhdf5filters_1.6.0          ade4_1.7-19                
[13] withr_2.5.0                 tidyselect_1.1.2          
[15] prettyunits_1.1.1           bit_4.0.4                  
[17] curl_4.3.2                  compiler_4.1.3            
[19] cli_3.3.0                   xml2_1.3.3                
[21] DelayedArray_0.20.0         keras_2.9.0                
[23] askpass_1.1                 tfruns_1.5.0              
[25] rappdirs_0.3.3              stringr_1.4.0              
[27] Rsamtools_2.10.0            base64enc_0.1-3            
[29] pkgconfig_2.0.3             MatrixGenerics_1.6.0      
[31] dbplyr_2.2.0                fastmap_1.1.0              
[33] rlang_1.0.2                 RSQLite_2.2.10            
[35] BiocIO_1.4.0                generics_0.1.2            
[37] jsonlite_1.8.0              vroom_1.5.7                
[39] tensorflow_2.9.0            BiocParallel_1.28.3        
[41] dplyr_1.0.9                 RCurl_1.98-1.7            
[43] magrittr_2.0.3              GenomeInfoDbData_1.2.7    
[45] Matrix_1.4-1                Rcpp_1.0.8.3              
[47] Rhdf5lib_1.16.0             fansi_1.0.3                
[49] reticulate_1.25             lifecycle_1.0.1            
[51] stringi_1.7.6               whisker_0.4                
[53] yaml_2.3.5                  MASS_7.3-57                
[55] SummarizedExperiment_1.24.0 zlibbioc_1.40.0            
[57] rhdf5_2.38.1                BiocFileCache_1.14.0      
[59] grid_4.1.3                  blob_1.2.3                
[61] parallel_4.1.3              crayon_1.5.1              
[63] lattice_0.20-45             hash_2.2.6.2              
[65] hms_1.1.1                   zeallot_0.1.0              
[67] pillar_1.7.0                rjson_0.2.21              
[69] seqinr_4.2-16               biomaRt_2.46.3            
[71] XML_3.99-0.10               glue_1.6.2                
[73] data.table_1.14.2           png_0.1-7                  
[75] vctrs_0.4.1                 tzdb_0.3.0                
[77] openssl_2.0.1               purrr_0.3.4                
[79] assertthat_0.2.1            cachem_1.0.6              
[81] restfulr_0.0.15             tibble_3.1.7              
[83] GenomicAlignments_1.30.0    mltools_0.3.5              
[85] memoise_2.0.1               ellipsis_0.3.2            
[87] here_1.0.1        

and this r-reticulate environment:

_libgcc_mutex=0.1
_openmp_mutex=4.5
abseil-cpp=20210324.2
absl-py=1.1.0
aiohttp=3.8.1
aiosignal=1.2.0
astunparse=1.6.3
async-timeout=4.0.2
asynctest=0.13.0
attrs=21.4.0
blinker=1.4
brotlipy=0.7.0
bzip2=1.0.8
c-ares=1.18.1
ca-certificates=2022.6.15
cached-property=1.5.2
cached_property=1.5.2
cachetools=4.2.4
certifi=2022.6.15
cffi=1.14.4
charset-normalizer=2.0.12
click=8.1.3
cryptography=37.0.2
cudatoolkit=11.3.1
cudnn=8.2.1.32
frozenlist=1.3.0
gast=0.4.0
giflib=5.2.1
google-auth=1.35.0
google-auth-oauthlib=0.4.6
google-pasta=0.2.0
grpc-cpp=1.42.0
grpcio=1.42.0
h5py=3.6.0
hdf5=1.12.1
icu=69.1
idna=3.3
importlib-metadata=4.11.4
jpeg=9e
keras=2.7.0
keras-preprocessing=1.1.2
keyutils=1.6.1
krb5=1.19.3
ld_impl_linux-64=2.36.1
libblas=3.9.0
libcblas=3.9.0
libcublas=11.10.1.25
libcurl=7.83.1
libedit=3.1.20191231
libev=4.33
libffi=3.2.1
libgcc-ng=11.2.0
libgfortran-ng=11.2.0
libgfortran5=11.2.0
libgomp=11.2.0
liblapack=3.9.0
libnghttp2=1.47.0
libnsl=2.0.0
libopenblas=0.3.18
libpng=1.6.37
libprotobuf=3.19.4
libssh2=1.10.0
libstdcxx-ng=11.2.0
libzlib=1.2.11
markdown=3.3.7
multidict=6.0.2
nccl=2.12.12.1
ncurses=6.2
numpy=1.21.6
oauthlib=3.2.0
openssl=1.1.1o
opt_einsum=3.3.0
pip=20.1.1
protobuf=3.19.4
pyasn1=0.4.8
pyasn1-modules=0.2.7
pycparser=2.21
pyjwt=2.4.0
pyopenssl=22.0.0
pysocks=1.7.1
python=3.7.3
python-flatbuffers=2.0
python_abi=3.7
pyu2f=0.1.5
re2=2021.11.01
readline=8.1
requests=2.28.0
requests-oauthlib=1.3.1
rsa=4.8
scipy=1.7.3
setuptools=62.6.0
six=1.16.0
snappy=1.1.9
sqlite=3.37.0
tensorboard=2.6.0
tensorboard-data-server=0.6.0
tensorboard-plugin-wit=1.8.1
tensorflow=2.7.0
tensorflow-base=2.7.0
tensorflow-estimator=2.7.0
tensorflow-gpu=2.7.0
termcolor=1.1.0
tk=8.6.11
typing-extensions=4.2.0
typing_extensions=4.2.0
urllib3=1.26.9
werkzeug=2.1.2
wheel=0.37.0
wrapt=1.14.1
xz=5.2.5
yarl=1.7.2
zipp=3.8.0
zlib=1.2.11
ADD COMMENT

Login before adding your answer.

Traffic: 872 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6