Skip to content

Commit

Permalink
improved user interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bs674 committed Oct 11, 2020
1 parent 8d672e1 commit dae562c
Show file tree
Hide file tree
Showing 46 changed files with 662 additions and 3,420 deletions.
23 changes: 3 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ add_executable(proali
src/util/nucleotideCodeSubstitutionMatrix.h
src/util/parameters.cpp
src/util/parameters.h
song.cpp
main.cpp
src/model/Fasta.cpp
src/model/Fasta.h
src/model/variant.cpp
Expand All @@ -54,18 +54,9 @@ add_executable(proali
src/model/Gene.h
src/model/Matrix.cpp
src/model/Matrix.h
src/model/MsaWindow.cpp
src/model/MsaWindow.h
src/model/MsaSingleRecord.cpp
src/model/MsaSingleRecord.h
src/model/MsaFileRecord.cpp
src/model/MsaFileRecord.h
src/model/TwoSeqOfMsaResult.cpp
src/model/TwoSeqOfMsaResult.h
src/model/FirstLastList.cpp
src/model/FirstLastList.h
src/model/STRAND.h
src/model/REGION.h
src/model/Seed.h
src/model/Seed.cpp
src/model/PairedSimilarFragment.cpp
Expand All @@ -80,25 +71,17 @@ add_executable(proali
src/impl/checkOrfState.cpp
src/impl/checkOrfState.h
src/util/util.h
src/impl/nA2AA.cpp
src/impl/nA2AA.h
src/impl/getSubsequence.cpp
src/impl/getSubsequence.h
src/impl/readGffFile.cpp
src/impl/readGffFile.h
src/impl/coordinateLiftOver.cpp
src/impl/coordinateLiftOver.h
src/impl/getSequencesFromGff.cpp
src/impl/getSequencesFromGff.h
src/service/service.h
src/myImportandFunction/myImportantFunction.h
src/impl/TranscriptUpdateInformation.cpp
src/impl/TranscriptUpdateInformation.h
src/impl/FileWriteCatch.cpp
src/impl/FileWriteCatch.h
src/tests/util/nucleotideCodeSubstitutionMatrix_test.cpp
src/model/Range.cpp src/model/Range.h src/model/AlignmentMatch.cpp
src/model/AlignmentMatch.h
src/service/TransferGffWithNucmerResult.cpp
src/service/TransferGffWithNucmerResult.h
src/myImportandFunction/alignSlidingWindow.cpp
Expand All @@ -111,8 +94,8 @@ add_executable(proali
src/tests/impl/readFastaFile_test.cpp
src/impl/deNovoGenomeVariantCalling.cpp
src/impl/deNovoGenomeVariantCalling.h
src/model/OrthologPair.cpp
src/model/OrthologPair.h
src/model/AlignmentMatch.cpp
src/model/AlignmentMatch.h
src/model/Score.cpp
src/model/Score.h
src/impl/geneSyntenic.cpp
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ minimap2 -ax splice -t 90 -a -uf -p 0.4 -C5 Sorghum_bicolor.Sorghum_bicolor_NCBI
proali proali -i Zea_mays.AGPv4.34.gff3 -r Zea_mays.AGPv4.dna.toplevel.fa -a cds.sam -s Sorghum_bicolor.Sorghum_bicolor_NCBIv3.dna.toplevel.fa -w 20000 -R 1 -Q 2 -O 0 -D 32 -o alignment -f
```

### Variant calling for different accessions
This module perform base pair resolution genome alignment for two genomes. A query chromosome sequence would be aligned against the reference chromosome with the same name end-to-end. \
### genome alignment without rearrangement
This module perform base pair resolution sequence alignment for two genomes. A query chromosome sequence would be aligned against the reference chromosome with the same name end-to-end. \
Inversions \
The output could be end-to-end sequence alignment for the whole chromosome in maf format. \
Or alignment for each anchor region and inter anchor region with length shorter than the sequence alignment window width. \
A variant calling result in vcf format also would be created which is derived from end-to-end alignment. \
A variant calling result in vcf format could be created which is derived from end-to-end alignment. \
\
data: Arabidopsis thaliana Col-o reference genome and GFF3 annotation file from https://www.arabidopsis.org/\
Arabidopsis thaliana Ler-0 accession assembly from http://www.pnas.org/content/113/28/E4052
Expand Down
Binary file modified googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
Binary file not shown.
Binary file not shown.
Binary file modified googletest/googletest/libgtest_maind.a
Binary file not shown.
Binary file modified googletest/googletest/libgtestd.a
Binary file not shown.
60 changes: 57 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,62 @@
/*
* =====================================================================================
*
* Filename: song.cpp
*
* Description:
*
* Version: 1.0
* Created: 06/23/2017 21:51:57
* Revision: none
* Compiler: gcc
*
* Author: Baoxing Song (songbx.me), [email protected]
*
* =====================================================================================
*/
#include <stdlib.h>
/*************************************************************************
************************************************************************/

#include "src/controlLayer.h"
#include "./googletest/googletest/include/gtest/gtest.h"
using namespace std;


int main(int argc, char ** argv) {
testing::InitGoogleTest(&argc, argv);
RUN_ALL_TESTS();
int main(int argc, char** argv){
//testing::InitGoogleTest(&argc, argv);
//RUN_ALL_TESTS();
//return 0;
if( argc<=1 ){
usage();
return 1;
}
std::string program = argv[1];
if( program.compare("-h") == 0 || program.compare("--help") == 0 ){
usage();
exit(1);
}
InputParser inputParser (argc, argv);
string parameterFile;
std::string exepath = getexepath(argv);
if( inputParser.cmdOptionExists("-parameter")){
parameterFile = inputParser.getCmdOption("-parameter");
}else{
parameterFile = exepath + "/configure";
}
std::map<std::string, std::string> parameters = initialize_paramters(parameterFile, exepath);
if( program.compare("gff2seq") == 0 ) {
return gff2seq(--argc, ++argv, parameters);
} else if ( program.compare("proali") == 0 ) {
return proportationalAlignment(--argc, ++argv, parameters);
} else if ( program.compare("genoAli") == 0 ) {
return genomeAlignment(--argc, ++argv, parameters);
} else{
usage();
}
return 0;
}
64 changes: 0 additions & 64 deletions song.cpp

This file was deleted.

Loading

0 comments on commit dae562c

Please sign in to comment.