Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
何伟明(Weiming He) committed Aug 25, 2023
1 parent 7700876 commit d2bf607
Show file tree
Hide file tree
Showing 27 changed files with 1,659 additions and 4 deletions.
69 changes: 69 additions & 0 deletions INSTALL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
fqcheck : fqcheck

1) Introduction
------------

This software relies on two other library packages [zlib and gzstream]
g++ > 4.9 is bester

---------------------- zlib infomation ----------------------------
If Lib [zlib] do not work
you can download form this website and install it
http://www.zlib.net/

---------------------- gzstream infomation ----------------------------
If Lib [gzstream] do not work
you can download form this website and install it
http://www.cs.unc.edu/Research/compgeom/gzstream/



2) linux/Unix INSTALL
--------------------------------------

Just execute as follows :
tar -zxvf fqcheckXXX.tar.gz
cd fqcheckXXX.tar.gz;
make ; make clean
./bin/fqcheck

#I had compiled and installed these two library packages [zlib and gzstream] on the linux X64 platform
if Link do not work ,try Re-install these two librarys and copy them to the library Dir

fqcheck-xx/include
fqcheck-xx/lib



3) macOS platform INSTALL

you should must two library [zlib and gzstream] and copy them to the corresponding library directory


#step1 :Should must <b>re-install</b> two library [zlib and gzstream]
see [zlib and gzstream] website

#step2 : # Copy these two library into the corresponding library directory

cp libz.a libz.so* fqcheck-xx/lib
cp libgzstream.a fqcheck-xx/lib


#step3 :

sh make.sh # or [make && make clean]

# if software can not find the htslib Path ,you can vim the make.sh or Makefile [-I -L]


4) Contact
email: [email protected] / [email protected]
join the QQ Group : 125293663



######################swimming in the sky and flying in the sea ########################### ##




22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
CXX=g++
BIN := ./bin

LDFLAGS=-lz
INCLUDE=-I./include
LIBS=-L./lib

CXXFLAGS= -g -O3 $(INCLUDE) $(LIBS)
# you can add the [ -I /path/.../samtools-1.6/htslib-1.6 -L /path/.../samtools-1.6/htslib-1.6 ] here #no need by fqcheck


all: $(BIN)/fqcheck

$(BIN)/fqcheck: $(BIN)/../src/fqcheck.o
$(CXX) $^ -o $@ $(LDFLAGS) $(INCLUDE) $(LIBS)

$(BIN)/%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $< -o $@

clean:
$(RM) $(BIN)/*.o $(BIN)/../src/*.o

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
------------
The <b>new version</b> will be updated and maintained in <b>[hewm2008/fqcheck](https://github.com/hewm2008/fqcheck)</b>, please click below Link to download the latest version
</br><p align="center"><b>[hewm2008/fqcheck](https://github.com/hewm2008/fqcheck)</b></p>
<b> [Download](https://github.com/hewm2008/fqcheck/archive/v2.07.tar.gz) </b>
<b> [Download](https://github.com/hewm2008/fqcheck/archive/v2.08.tar.gz) </b>

For <b>linux/Unix </b> static
</br>you can use the statically compiled programs <i>directly</i>
Expand Down Expand Up @@ -40,7 +40,7 @@ Usage:fqcheck -InFq1 <in.fq> -OutStat1 <out.fqcheck> [options]
-Adapter1 <str> Input adapters fa file
-Adapter2 <str> Input adapters2 fa file

-help show this help[hewm2008 v2.07]
-help show this help[hewm2008 v2.08]

```

Expand All @@ -63,9 +63,9 @@ Usage:fqcheck -InFq1 <in.fq> -OutStat1 <out.fqcheck> [options]
some stat file will ouput.
Also if the system has <b> gnuplot</b> and <b> convert</b> commands installed, the following pictures will be output

![base.png](https://github.com/hewm2008/fqcheck/blob/main/Example/base.png)
![base.png](https://github.com/hewm2008/fqcheck/blob/main/example/base.png)

![qual.png](https://github.com/hewm2008/fqcheck/blob/main/Example/qual.png)
![qual.png](https://github.com/hewm2008/fqcheck/blob/main/example/qual.png)

### 4) Discussing
------------
Expand Down
3 changes: 3 additions & 0 deletions SourceMe2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
prefix=/zfssz5/BC_PUB/Software/01.Usr # may the Gzstream zlib install path
export PATH=/ifswh2/SOLEXA/hdp4000/bin:/zfssz5/BC_PUB/Software/03.Soft_ALL/gnuplot-5.2/bin/:$prefix/bin:$PATH # may gnuplot here
export LD_LIBRARY_PATH=$prefix/lib:$prefix/lib64:$LD_LIBRARY_PATH
3 changes: 3 additions & 0 deletions bin/SourceMe2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
prefix=/zfssz5/BC_PUB/Software/01.Usr # may the Gzstream zlib install path
export PATH=/ifswh2/SOLEXA/hdp4000/bin:/zfssz5/BC_PUB/Software/03.Soft_ALL/gnuplot-5.2/bin/:$prefix/bin:$PATH # may gnuplot here
export LD_LIBRARY_PATH=$prefix/lib:$prefix/lib64:$LD_LIBRARY_PATH
Binary file added bin/fqcheck
Binary file not shown.
Binary file added example/1.adapter.list.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions example/1.adapter.stat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
adapter_id polluted_reads empty_reads adapter_sequence
iPE-3+ 0 (0.000%) 0 (0.000%) AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC

total_reads: 2471
97 changes: 97 additions & 0 deletions example/1.fqcheck

Large diffs are not rendered by default.

Binary file added example/2.adapter.list.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions example/2.adapter.stat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
adapter_id polluted_reads empty_reads adapter_sequence
iPE-5- 3 (0.121%) 0 (0.000%) AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA

total_reads: 2471
Loading

0 comments on commit d2bf607

Please sign in to comment.