marbl / SALSA

SALSA: A tool to scaffold long read assemblies with Hi-C data
MIT License
178 stars 47 forks source link

break_contigs error 1 #105

Closed Yedomon closed 3 years ago

Yedomon commented 4 years ago

Greetings of the season.

Here is the history of my installation process.

conda create -n SALSA python=2.7 #Create the SALSA environment and install python 2.7

source activate SALSA  #Activate the SALSA environment

conda install boost networkx==1.11 #Install boost and networkx v1.1

cd SALSA-master #move to the SALSA-master folder

make  #compile the code

I got this message

g++ -O3 -Wall -Wextra -std=c++11 -o break_contigs break_contigs.cpp
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [Makefile:9: break_contigs] Error 1

Due to this line cc1plus: error: unrecognized command line option "-std=c++11",

I checked the version of my g++ by typing

g++ --version.

I got the message

g++ (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I updated the compiler by typing:

conda install -c anaconda gcc_linux-64==5.4.0

I compiled again but I got the same message

g++ -O3 -Wall -Wextra -std=c++11 -o break_contigs break_contigs.cpp
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [Makefile:9: break_contigs] Error 1

However, I checked the program by running:

python run_pipeline.py -h

And I got the message:

usage: run_pipeline.py [-h] -a ASSEMBLY -l LENGTH -b BED [-o OUTPUT]
                       [-c CUTOFF] [-g GFA] [-u UNITIGS] [-e ENZYME]
                       [-i ITER] [-x DUP] [-s EXP] [-m CLEAN]

SALSA Iterative Pipeline

optional arguments:
  -h, --help            show this help message and exit
  -a ASSEMBLY, --assembly ASSEMBLY
                        Path to initial assembly, headers must not contain ':'
  -l LENGTH, --length LENGTH
                        Length of contigs at start
  -b BED, --bed BED     Bed file of alignments sorted by read names
  -o OUTPUT, --output OUTPUT
                        Output directory to put results
  -c CUTOFF, --cutoff CUTOFF
                        Minimum contig length to scaffold, default=1000
  -g GFA, --gfa GFA     GFA file for assembly
  -e ENZYME, --enzyme ENZYME
                        Restriction Enzyme used for experiment
  -i ITER, --iter ITER  Number of iterations to run, default = 3
  -x DUP, --dup DUP     File containing duplicated contig information
  -s EXP, --exp EXP     Expected Genome size of the assembled genome
  -m CLEAN, --clean CLEAN
                        Set this option to "yes" if you want to find
                        misassemblies in input assembly

How can I fix this issue

make: *** [Makefile:9: break_contigs] Error 1 ?

Which version compiler is required?

Sincerely Yours.

SALSA

ghuryejay commented 4 years ago

What's your gcc version? We recommend using the latest gcc version for compilation.