Code Monkey home page Code Monkey logo

Comments (7)

max1c avatar max1c commented on August 13, 2024 1

I know it's been a hot minute, but here is how I built this:

$ git clone https://github.com/adaptivegenome/repeatseq
$ cd repeatseq
$ git clone https://github.com/pezmaster31/bamtools
$ git clone https://github.com/ekg/fastahack
$ cd bamtools
$ git checkout split-fix
$ mkdir build
$ cd build
$ cmake ../
$ make
$ cd ../fastahack
$ make
$ cd ..
$ make
$ export LD_LIBRARY_PATH=/path/to/bamtools/lib:$LD_LIBRARY_PATH
$ ./repeatseq

Not enough arguments given. Exiting..

-----------------------------------------------------------

RepeatSeq v0.8.2

Usage:   repeatseq [options] <in.bam> <in.fasta> <in.regions>

Options: -r             use only a specific read length or range of read lengths (e.g. LENGTH or MIN:MAX)
         -L             required number of reference matching bases BEFORE the repeat [3]
         -R             required number of reference matching bases AFTER the repeat [3]
         -M             minimum mapping quality for a read to be used for allele determination
         -multi         exclude reads flagged with the XT:A:R tag
         -pp            exclude reads that are not properly paired (for PE reads only)
         -emitconfidentsites            report all confident genotypes even if they do not vary from ref

         -haploid       assume a haploid rather than diploid genome

         -repeatseq     write .repeatseq file containing additional information about reads
         -calls         write .calls file
         -t             include user-defined tag in the output filename
         -o             number of flanking bases to output from each read

-----------------------------------------------------------

Hope this helps.

from repeatseq.

YiweiNiu avatar YiweiNiu commented on August 13, 2024

Hi, did you solve this? I also got this error when installing repeatseq.

from repeatseq.

freitasleandro avatar freitasleandro commented on August 13, 2024

I couldn't install either.
I got the following error
g++ -c -O3 -Ibamtools/src repeatseq.cpp
In file included from fastahack/Fasta.h:19:0,
from repeatseq.h:22,
from repeatseq.cpp:27:
fastahack/LargeFileSupport.h:14:0: warning: "fseek64" redefined
#define fseek64(a,b,c) fseeko(a,b,c)

In file included from bamtools/src/api/api_global.h:13:0,
from bamtools/src/api/BamAux.h:19,
from bamtools/src/api/BamAlignment.h:18,
from bamtools/src/api/BamReader.h:14,
from repeatseq.h:18,
from repeatseq.cpp:27:
bamtools/src/shared/bamtools_global.h:46:0: note: this is the location of the previous definition
#define fseek64(a, b, c) fseeko(a, b, c)

repeatseq.cpp: In function ‘bool fileCheck(std::__cxx11::string)’:
repeatseq.cpp:1398:9: error: cannot convert ‘std::ifstream {aka std::basic_ifstream}’ to ‘bool’ in return
return ifile;
^~~~~
makefile:13: recipe for target 'repeatseq.o' failed
make: *** [repeatseq.o] Error 1

Any suggetions?

from repeatseq.

GuanglinHe1 avatar GuanglinHe1 commented on August 13, 2024

I know it's been a hot minute, but here is how I built this:

$ git clone https://github.com/adaptivegenome/repeatseq
$ cd repeatseq
$ git clone https://github.com/pezmaster31/bamtools
$ git clone https://github.com/ekg/fastahack
$ cd bamtools
$ git checkout split-fix
$ mkdir build
$ cd build
$ cmake ../
$ make
$ cd ../fastahack
$ make
$ cd ..
$ make
$ export LD_LIBRARY_PATH=/path/to/bamtools/lib:$LD_LIBRARY_PATH
$ ./repeatseq

Not enough arguments given. Exiting..

-----------------------------------------------------------

RepeatSeq v0.8.2

Usage:   repeatseq [options] <in.bam> <in.fasta> <in.regions>

Options: -r             use only a specific read length or range of read lengths (e.g. LENGTH or MIN:MAX)
         -L             required number of reference matching bases BEFORE the repeat [3]
         -R             required number of reference matching bases AFTER the repeat [3]
         -M             minimum mapping quality for a read to be used for allele determination
         -multi         exclude reads flagged with the XT:A:R tag
         -pp            exclude reads that are not properly paired (for PE reads only)
         -emitconfidentsites            report all confident genotypes even if they do not vary from ref

         -haploid       assume a haploid rather than diploid genome

         -repeatseq     write .repeatseq file containing additional information about reads
         -calls         write .calls file
         -t             include user-defined tag in the output filename
         -o             number of flanking bases to output from each read

-----------------------------------------------------------

Hope this helps.

I use your method to install Repeatseq,but when make, there was also error as follow:
repeatseq.cpp: In function 'bool fileCheck(std::__cxx11::string)':
repeatseq.cpp:1398:9: error: cannot convert 'std::ifstream {aka std::basic_ifstream}' to 'bool' in return
return ifile;
^~~~~
makefile:13: recipe for target 'repeatseq.o' failed
make: *** [repeatseq.o] Error 1

I would be appreciated if there is any suggestions.

from repeatseq.

max1c avatar max1c commented on August 13, 2024

I use your method to install Repeatseq,but when make, there was also error as follow:
repeatseq.cpp: In function 'bool fileCheck(std::__cxx11::string)':
repeatseq.cpp:1398:9: error: cannot convert 'std::ifstream {aka std::basic_ifstream}' to 'bool' in return
return ifile;
^~~~~
makefile:13: recipe for target 'repeatseq.o' failed
make: *** [repeatseq.o] Error 1

I would be appreciated if there is any suggestions.

What gcc version are you using? I'd suggest trying a more recent version 8 or 9.

from repeatseq.

GuanglinHe1 avatar GuanglinHe1 commented on August 13, 2024

I use your method to install Repeatseq,but when make, there was also error as follow:
repeatseq.cpp: In function 'bool fileCheck(std::__cxx11::string)':
repeatseq.cpp:1398:9: error: cannot convert 'std::ifstream {aka std::basic_ifstream}' to 'bool' in return
return ifile;
^~~~~
makefile:13: recipe for target 'repeatseq.o' failed
make: *** [repeatseq.o] Error 1
I would be appreciated if there is any suggestions.

What gcc version are you using? I'd suggest trying a more recent version 8 or 9.

Today, I already installed gcc9.1.0 version , but when making,there was the same problem as like above. So, please give me some advice.

from repeatseq.

pziarsolo avatar pziarsolo commented on August 13, 2024

Hi,
I have fixed the error changing line 1398 (funcbool fileCheck(string strFilename)) from
return ifile;
to
return ifile.good();

Good luck

from repeatseq.

Related Issues (10)

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.