univieCUBE / gepard

Genome Pair Rapid Dotter
http://cube.univie.ac.at/gepard
MIT License
61 stars 16 forks source link

How to start gepard on the commandline #1

Closed sajvanderzeeuw closed 2 years ago

sajvanderzeeuw commented 8 years ago

Hi,

First of all thanks of making this nice tool. In your .HTML tutorial you distribute with Gepard, i see that you also support an commandline version of Gepard which should be started from a .sh file from the toplevel of the Gepard dir. Can you please tell me where i can find that script. Since when i clone directly from here, i get nothing. As you can see in the tree below. Hope you can help me out. Thanks,

Best regards,

Sander

.
├── dist
│   └── Gepard-1.40.jar
├── Gepard.jardesc
├── LICENSE
├── LICENSE.txt
├── README.md
├── README run without JAR.txt
├── README.txt
├── resources
│   ├── help
│   │   ├── help.xml
│   │   ├── reference.txt
│   │   └── usermsg.txt
│   ├── images
│   │   ├── export.gif
│   │   ├── gepard.gif
│   │   ├── logo.gif
│   │   ├── zoomfull.gif
│   │   ├── zoomin.gif
│   │   └── zoomout.gif
│   ├── matrices
│   │   ├── blosum62.mat
│   │   ├── edna.mat
│   │   ├── ednaorig.mat
│   │   ├── matrices.xml
│   │   ├── pam250.mat
│   │   └── protidentity.mat
│   └── tutorial.html
├── src
│   ├── matrices
│   │   ├── blosum62.mat
│   │   ├── edna.mat
│   │   ├── ednaorig.mat
│   │   ├── matrices.xml
│   │   ├── pam250.mat
│   │   └── protidentity.mat
│   └── org
│       └── gepard
│           ├── client
│           │   ├── AutoParameters.java
│           │   ├── BrowserLauncher.java
│           │   ├── ClientGlobals.java
│           │   ├── cmdline
│           │   │   ├── CommandLineArguments.java
│           │   │   ├── CommandLine.java
│           │   │   └── InvalidArgumentsException.java
│           │   ├── Config.java
│           │   ├── Controller.java
│           │   ├── DotplotInfo.java
│           │   ├── DrawTarget.java
│           │   ├── GeneNames.java
│           │   ├── InvalidParamSetException.java
│           │   ├── Plotter.java
│           │   ├── Start.java
│           │   ├── SubstMatrixFile.java
│           │   ├── SubstMatrixList.java
│           │   └── userinterface
│           │       ├── AboutDialog.java
│           │       ├── ContainerWindow.java
│           │       ├── ControlPanel.java
│           │       ├── CustomComboBox.java
│           │       ├── DrawPanel.java
│           │       ├── ExampleFileFilter.java
│           │       ├── HelpTexts.java
│           │       ├── InfoPanel.java
│           │       ├── MainPanel.java
│           │       ├── ProxyDialog.java
│           │       ├── StatusDialog.java
│           │       ├── UserMessageDialog.java
│           │       └── WindowPos.java
│           └── common
│               ├── AbortionChecker.java
│               ├── Base64.java
│               ├── CompressedDotMatrix.java
│               ├── Compression.java
│               ├── DotMatrixCallback.java
│               ├── DotMatrix.java
│               ├── FASTAReader.java
│               ├── FASTAWriter.java
│               ├── GenSAFile.java
│               ├── GenSAFileVmatch.java
│               ├── InvalidFASTAFileException.java
│               ├── InvalidSubMatFileException.java
│               ├── LEDataInputStream.java
│               ├── LEDataOutputStream.java
│               ├── ParameterSet.java
│               ├── SAXFinishedException.java
│               ├── Sequence.java
│               ├── SubstitutionMatrix.java
│               ├── SuffixArray.java
│               └── VmatchConverter.java
└── tutorial.html

13 directories, 80 files```
rattei commented 8 years ago

Hello,

I'd recommend to start start the jar file. Either double click or use java -jar dist/Gepard-140.jar from the command line.

Best, Thomas


                                                               ue

Prof. Dr. Thomas Rattei bbc CUBE - Division of Computational Systems Biology cbc Dept. of Microbiology and Ecosystem Science ec cce.cc University of Vienna bbbc ccuc....b Althanstrasse 14 c bb........ce 1090 Vienna, Austria ue........cu Phone +43 1 4277 76680 ce......c bbue Mobile +43 664 60277 76680 e..ccucc be e-mail thomas.rattei@univie.ac.at bcc web cube.univie.ac.at cbb ____ u c

Am 08.02.2016 um 20:22 schrieb sajvanderzeeuw notifications@github.com:

Hi,

First of all thanks of making this nice tool In your HTML tutorial you distribute with Gepard, i see that you also support an commandline version of Gepard which should be started from a sh file from the toplevel of the Gepard dir Can you please tell me where i can find that script Since when i clone directly from here, i get nothing As you can see in the tree below Hope you can help me out Thanks,

Best regards,

Sander

├── dist │ └── Gepard-140jar ├── Gepardjardesc ├── LICENSE ├── LICENSEtxt ├── READMEmd ├── README run without JARtxt ├── READMEtxt ├── resources │ ├── help │ │ ├── helpxml │ │ ├── referencetxt │ │ └── usermsgtxt │ ├── images │ │ ├── exportgif │ │ ├── gepardgif │ │ ├── logogif │ │ ├── zoomfullgif │ │ ├── zoomingif │ │ └── zoomoutgif │ ├── matrices │ │ ├── blosum62mat │ │ ├── ednamat │ │ ├── ednaorigmat │ │ ├── matricesxml │ │ ├── pam250mat │ │ └── protidentitymat │ └── tutorialhtml ├── src │ ├── matrices │ │ ├── blosum62mat │ │ ├── ednamat │ │ ├── ednaorigmat │ │ ├── matricesxml │ │ ├── pam250mat │ │ └── protidentitymat │ └── org │ └── gepard │ ├── client │ │ ├── AutoParametersjava │ │ ├── BrowserLauncherjava │ │ ├── ClientGlobalsjava │ │ ├── cmdline │ │ │ ├── CommandLineArgumentsjava │ │ │ ├── CommandLinejava │ │ │ └── InvalidArgumentsExceptionjava │ │ ├── Configjava │ │ ├── Controllerjava │ │ ├── DotplotInfojava │ │ ├── DrawTargetjava │ │ ├── GeneNamesjava │ │ ├── InvalidParamSetExceptionjava │ │ ├── Plotterjava │ │ ├── Startjava │ │ ├── SubstMatrixFilejava │ │ ├── SubstMatrixListjava │ │ └── userinterface │ │ ├── AboutDialogjava │ │ ├── ContainerWindowjava │ │ ├── ControlPaneljava │ │ ├── CustomComboBoxjava │ │ ├── DrawPaneljava │ │ ├── ExampleFileFilterjava │ │ ├── HelpTextsjava │ │ ├── InfoPaneljava │ │ ├── MainPaneljava │ │ ├── ProxyDialogjava │ │ ├── StatusDialogjava │ │ ├── UserMessageDialogjava │ │ └── WindowPosjava │ └── common │ ├── AbortionCheckerjava │ ├── Base64java │ ├── CompressedDotMatrixjava │ ├── Compressionjava │ ├── DotMatrixCallbackjava │ ├── DotMatrixjava │ ├── FASTAReaderjava │ ├── FASTAWriterjava │ ├── GenSAFilejava │ ├── GenSAFileVmatchjava │ ├── InvalidFASTAFileExceptionjava │ ├── InvalidSubMatFileExceptionjava │ ├── LEDataInputStreamjava │ ├── LEDataOutputStreamjava │ ├── ParameterSetjava │ ├── SAXFinishedExceptionjava │ ├── Sequencejava │ ├── SubstitutionMatrixjava │ ├── SuffixArrayjava │ └── VmatchConverterjava └── tutorialhtml

13 directories, 80 files```

— Reply to this email directly or view it on GitHub.

sajvanderzeeuw commented 8 years ago

HI Thomas,

Thanks for the quick reply! I know how to start the jar file but that gives me an GUI, i basically need the functionalities directly on the commandline which enables me to run this tool on multiple comparisons at once. I was hoping that the bash script you are talking about in the README, and tutorial in this repository would give me that functionality.

Best,

Sander

rattei commented 8 years ago

Hi Sander,

sorry, the readme.txt file was not up-to-date in that point. For command line functionality please run gepard this way:

java -cp Gepard-1.40.jar org.gepard.client.cmdline.CommandLine

Best, Thomas


                                                               ue

Prof. Dr. Thomas Rattei bbc CUBE - Division of Computational Systems Biology cbc Dept. of Microbiology and Ecosystem Science ec cce.cc University of Vienna bbbc ccuc....b Althanstrasse 14 c bb........ce 1090 Vienna, Austria ue........cu Phone +43 1 4277 76680 ce......c bbue Mobile +43 664 60277 76680 e..ccucc be e-mail thomas.rattei@univie.ac.at bcc web cube.univie.ac.at cbb ____ u c

Am 09.02.2016 um 13:07 schrieb sajvanderzeeuw notifications@github.com:

HI Thomas,

Thanks for the quick reply! I know how to start the jar file but that gives me an GUI, i basically need the functionalities directly on the commandline which enables me to run this tool on multiple comparisons at once. I was hoping that the bash script you are talking about in the README, and tutorial in this repository would give me that functionality.

Best,

Sander

— Reply to this email directly or view it on GitHub.

sajvanderzeeuw commented 8 years ago

HI Thomas,

Thanks for answering so fast. Would be a nice idea to update the tutorial indeed, or just add one small .sh script which runs java -cp Gepard-1.40.jar org.gepard.client.cmdline.CommandLine.

Best and again thanks!

Sander

On 09-02-16 15:44, rattei wrote:

Hi Sander,

sorry, the readme.txt file was not up-to-date in that point. For command line functionality please run gepard this way:

java -cp Gepard-1.40.jar org.gepard.client.cmdline.CommandLine

Best, Thomas


ue Prof. Dr. Thomas Rattei bbc CUBE - Division of Computational Systems Biology cbc Dept. of Microbiology and Ecosystem Science ec cce.cc University of Vienna bbbc ccuc....b Althanstrasse 14 c bb........ce 1090 Vienna, Austria ue........cu Phone +43 1 4277 76680 ce......c bbue Mobile +43 664 60277 76680 e..ccucc be e-mail thomas.rattei@univie.ac.at bcc web cube.univie.ac.at cbb ____ u c

Am 09.02.2016 um 13:07 schrieb sajvanderzeeuw notifications@github.com:

HI Thomas,

Thanks for the quick reply! I know how to start the jar file but that gives me an GUI, i basically need the functionalities directly on the commandline which enables me to run this tool on multiple comparisons at once. I was hoping that the bash script you are talking about in the README, and tutorial in this repository would give me that functionality.

Best,

Sander

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/univieCUBE/gepard/issues/1#issuecomment-181897074.

splaisan commented 7 years ago

If it helps others... I had similar issues as above. I want to run many plots and would prefer cli. I did not find the right way to give the matrix which is one of the required inputs I found the fix by copying the matrices folder from the src to the gepard folder and provide the full path to the edna.mat as in the example Thanks for the great tool S

rattei commented 7 years ago

Hello Stephane,

you did not provide the -matrix parameter, which is mandatory. If you add it, like in this test, it works:

java -cp /apps/gepard/1.40/dist/Gepard-1.40.jar org.gepard.client.cmdline.CommandLine -seq1 ref1.fasta -seq2 ref2.fasta -matrix /apps/gepard/1.40/resources/matrices/edna.mat -word 100 -window 1000 -outfile gepard_ref1_vs_ref2.png

Best, Thomas


                                                               ue

Prof. Dr. Thomas Rattei bbc CUBE - Division of Computational Systems Biology cbc Dept. of Microbiology and Ecosystem Science ec cce.cc University of Vienna bbbc ccuc....b Althanstrasse 14 c bb........ce 1090 Vienna, Austria ue........cu Phone +43 1 4277 76680 ce......c bbue Mobile +43 664 60277 76680 e..ccucc be e-mail thomas.rattei@univie.ac.at bcc web cube.univie.ac.at cbb ____ u c

Am 21.04.2017 um 13:03 schrieb Stephane Plaisance notifications@github.com:

I have similar issues as above. I want to run many plots and would prefer cli. my command below does not complain and no output is created do I need to specify all parameters or are some set by default? the -word and -window were defined from a good GUI run Thanks for your help

java -cp /opt/biotools/gepard/gepard.jar org.gepard.client.cmdline.CommandLine -seq1 "ref1.fasta" -seq2 "ref2.fasta" -word 100 -window 1000 -outfile "gepard_ref1_vs_ref2.png"

Gepard 1.40 final - command line mode

Reference: Krumsiek J, Arnold R, Rattei T Gepard: A rapid and sensitive tool for creating dotplots on genome scale. Bioinformatics 2007; 23(8): 1026-8. PMID: 17309896

Parameters are supplied as -name value

Required parameters: -seq1: first sequence file -seq2: second sequence file -matrix: substitution matrix file -outfile: output file name

Dotplot image parameters: -maxwidth: maximum width of the generated image (default: 750) -maxheight: maximum height of the generated image (default: 750) -zoom: specify a zoom factor for the dotplot note: you can only use maxwidth/maxheight OR zoom when using maxwidth/maxheight the program tries to generate the largest possible dotplot within the given bounds -format: output format, one of: 'png', 'jpg', 'bmp' (default:PNG)

Dotplot computation parameters: -secondcomp use complementary of second sequence -word: word length for suffix array mode (default: 10) -window: window size for ordinary dotplot mode (default: 0) if a window value and no word value is specified, word=0 is assumed

Suffix array parameters: -safile load suffix array from file instead of calculating it -sasecondseq the suffix array is for the second sequence if -sasecondseq is NOT specified, the suffix array will be used for first sequence

Coordinate parameters (absolute values of % values) -from1,-to1 coordinates of first sequence -from2,-to2 coordinates of second sequence if these parameters are not specified the full sequence will be used

Display parameters: -lower lower limit for dot intensity (in %) -upper upper limit for dot intensity (in %) -greyscale greyscale start value (in %)

Miscellaneous: -silent generate no output (except error messages)

all tried commands execute like this even only specifying seq1 and seq2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

splaisan commented 7 years ago

Thanks a lot Thomas,

I corrected my comment after finding out I was missing the matrix indeed. I have it now working, the problem was that I downloaded only the jar and did not have the matrices folder with it. I now copied it from the src folder and link to the edna.mat in my cmd great tool!!

Best Stephane

Stéphane Plaisance – Staff Scientist | Bioinformatician VIB Nucleomics Core Herestraat 49 – Post Box 816 – 3000 Leuven – Belgium O&N4 Building – 8th Floor – Room 08.440 Tel. +32 16 37 31 26 Lync. +32 16 32 00 60 www.nucleomics.be http://www.nucleomics.be/ http://www.nucleomics.be/ http://www.nucleomics.be/ http://www.nucleomics.be/ http://www.vib.be/

On 21 Apr 2017, at 13:33, rattei notifications@github.com wrote:

Hello Stephane,

you did not provide the -matrix parameter, which is mandatory. If you add it, like in this test, it works:

java -cp /apps/gepard/1.40/dist/Gepard-1.40.jar org.gepard.client.cmdline.CommandLine -seq1 ref1.fasta -seq2 ref2.fasta -matrix /apps/gepard/1.40/resources/matrices/edna.mat -word 100 -window 1000 -outfile gepard_ref1_vs_ref2.png

Best, Thomas


ue Prof. Dr. Thomas Rattei bbc CUBE - Division of Computational Systems Biology cbc Dept. of Microbiology and Ecosystem Science ec cce.cc University of Vienna bbbc ccuc....b Althanstrasse 14 c bb........ce 1090 Vienna, Austria ue........cu Phone +43 1 4277 76680 ce......c bbue Mobile +43 664 60277 76680 e..ccucc be e-mail thomas.rattei@univie.ac.at bcc web cube.univie.ac.at cbb ____ u c

Am 21.04.2017 um 13:03 schrieb Stephane Plaisance notifications@github.com:

I have similar issues as above. I want to run many plots and would prefer cli. my command below does not complain and no output is created do I need to specify all parameters or are some set by default? the -word and -window were defined from a good GUI run Thanks for your help

java -cp /opt/biotools/gepard/gepard.jar org.gepard.client.cmdline.CommandLine -seq1 "ref1.fasta" -seq2 "ref2.fasta" -word 100 -window 1000 -outfile "gepard_ref1_vs_ref2.png"

Gepard 1.40 final - command line mode

Reference: Krumsiek J, Arnold R, Rattei T Gepard: A rapid and sensitive tool for creating dotplots on genome scale. Bioinformatics 2007; 23(8): 1026-8. PMID: 17309896

Parameters are supplied as -name value

Required parameters: -seq1: first sequence file -seq2: second sequence file -matrix: substitution matrix file -outfile: output file name

Dotplot image parameters: -maxwidth: maximum width of the generated image (default: 750) -maxheight: maximum height of the generated image (default: 750) -zoom: specify a zoom factor for the dotplot note: you can only use maxwidth/maxheight OR zoom when using maxwidth/maxheight the program tries to generate the largest possible dotplot within the given bounds -format: output format, one of: 'png', 'jpg', 'bmp' (default:PNG)

Dotplot computation parameters: -secondcomp use complementary of second sequence -word: word length for suffix array mode (default: 10) -window: window size for ordinary dotplot mode (default: 0) if a window value and no word value is specified, word=0 is assumed

Suffix array parameters: -safile load suffix array from file instead of calculating it -sasecondseq the suffix array is for the second sequence if -sasecondseq is NOT specified, the suffix array will be used for first sequence

Coordinate parameters (absolute values of % values) -from1,-to1 coordinates of first sequence -from2,-to2 coordinates of second sequence if these parameters are not specified the full sequence will be used

Display parameters: -lower lower limit for dot intensity (in %) -upper upper limit for dot intensity (in %) -greyscale greyscale start value (in %)

Miscellaneous: -silent generate no output (except error messages)

all tried commands execute like this even only specifying seq1 and seq2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/univieCUBE/gepard/issues/1#issuecomment-296167737, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0ZlDXFk1zpiyNJ2RKlZv5wVp7Fk7QDks5ryJQigaJpZM4HVrnG.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/univieCUBE/gepard","title":"univieCUBE/gepard","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/univieCUBE/gepard"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rattei in #1: Hello Stephane,\r\n\r\nyou did not provide the -matrix parameter, which is mandatory. If you add it, like in this test, it works:\r\n\r\njava -cp /apps/gepard/1.40/dist/Gepard-1.40.jar org.gepard.client.cmdline.CommandLine -seq1 ref1.fasta -seq2 ref2.fasta -matrix /apps/gepard/1.40/resources/matrices/edna.mat -word 100 -window 1000 -outfile gepard_ref1_vs_ref2.png\r\n\r\nBest,\r\nThomas\r\n\r\n__\r\n ue\r\nProf. Dr. Thomas Rattei bbc\r\nCUBE - Division of Computational Systems Biology cbc\r\nDept. of Microbiology and Ecosystem Science ec cce.cc\r\nUniversity of Vienna bbbc ccuc....b\r\nAlthanstrasse 14 c bb........ce\r\n1090 Vienna, Austria ue........cu\r\nPhone +43 1 4277 76680 ce......c bbue\r\nMobile +43 664 60277 76680 e..ccucc be\r\ne-mail thomas.rattei@univie.ac.at bcc\r\nweb cube.univie.ac.at cbb\r\n____ u c\r\n\r\n\u003e Am 21.04.2017 um 13:03 schrieb Stephane Plaisance \u003cnotifications@github.com\u003e:\r\n\u003e \r\n\u003e I have similar issues as above. I want to run many plots and would prefer cli.\r\n\u003e my command below does not complain and no output is created\r\n\u003e do I need to specify all parameters or are some set by default?\r\n\u003e the -word and -window were defined from a good GUI run\r\n\u003e Thanks for your help\r\n\u003e \r\n\u003e java -cp /opt/biotools/gepard/gepard.jar org.gepard.client.cmdline.CommandLine -seq1 \"ref1.fasta\" -seq2 \"ref2.fasta\" -word 100 -window 1000 -outfile \"gepard_ref1_vs_ref2.png\"\r\n\u003e \r\n\u003e Gepard 1.40 final - command line mode\r\n\u003e \r\n\u003e Reference:\r\n\u003e Krumsiek J, Arnold R, Rattei T\r\n\u003e Gepard: A rapid and sensitive tool for creating dotplots on genome scale.\r\n\u003e Bioinformatics 2007; 23(8): 1026-8. PMID: 17309896\r\n\u003e \r\n\u003e Parameters are supplied as -name value\r\n\u003e \r\n\u003e Required parameters:\r\n\u003e -seq1: first sequence file\r\n\u003e -seq2: second sequence file\r\n\u003e -matrix: substitution matrix file\r\n\u003e -outfile: output file name\r\n\u003e \r\n\u003e Dotplot image parameters:\r\n\u003e -maxwidth: maximum width of the generated image (default: 750)\r\n\u003e -maxheight: maximum height of the generated image (default: 750)\r\n\u003e -zoom: specify a zoom factor for the dotplot\r\n\u003e note: you can only use maxwidth/maxheight OR zoom\r\n\u003e when using maxwidth/maxheight the program tries to generate the largest\r\n\u003e possible dotplot within the given bounds\r\n\u003e -format: output format, one of: 'png', 'jpg', 'bmp' (default:PNG)\r\n\u003e \r\n\u003e Dotplot computation parameters:\r\n\u003e -secondcomp use complementary of second sequence\r\n\u003e -word: word length for suffix array mode (default: 10)\r\n\u003e -window: window size for ordinary dotplot mode (default: 0)\r\n\u003e if a window value and no word value is specified, word=0 is assumed\r\n\u003e \r\n\u003e Suffix array parameters:\r\n\u003e -safile load suffix array from file instead of calculating it\r\n\u003e -sasecondseq the suffix array is for the second sequence\r\n\u003e if -sasecondseq is NOT specified, the suffix array will be used for first sequence\r\n\u003e \r\n\u003e Coordinate parameters (absolute values of % values)\r\n\u003e -from1,-to1 coordinates of first sequence\r\n\u003e -from2,-to2 coordinates of second sequence\r\n\u003e if these parameters are not specified the full sequence will be used\r\n\u003e \r\n\u003e Display parameters:\r\n\u003e -lower lower limit for dot intensity (in %)\r\n\u003e -upper upper limit for dot intensity (in %)\r\n\u003e -greyscale greyscale start value (in %)\r\n\u003e \r\n\u003e Miscellaneous:\r\n\u003e -silent generate no output (except error messages)\r\n\u003e \r\n\u003e all tried commands execute like this even only specifying seq1 and seq2\r\n\u003e \r\n\u003e —\r\n\u003e You are receiving this because you commented.\r\n\u003e Reply to this email directly, view it on GitHub, or mute the thread.\r\n\u003e \r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/univieCUBE/gepard/issues/1#issuecomment-296167737"}}}

rattei commented 7 years ago

Hello Stephane,

these are no special matrices, you might just use them e.g. from a commandline blast installation.

best, Thomas

Am 21.04.2017 um 13:36 schrieb Stephane Plaisance notifications@github.com:

Thanks a lot Thomas,

I corrected my comment after finding out I was missing the matrix indeed. I have it now working, the problem was that I downloaded only the jar and did not have the matrices folder with it. I now copied it from the src folder and link to the edna.mat in my cmd great tool!!

Best Stephane

Stéphane Plaisance – Staff Scientist | Bioinformatician VIB Nucleomics Core Herestraat 49 – Post Box 816 – 3000 Leuven – Belgium O&N4 Building – 8th Floor – Room 08.440 Tel. +32 16 37 31 26 Lync. +32 16 32 00 60 www.nucleomics.be http://www.nucleomics.be/ http://www.nucleomics.be/ http://www.nucleomics.be/ http://www.nucleomics.be/ http://www.vib.be/

On 21 Apr 2017, at 13:33, rattei notifications@github.com wrote:

Hello Stephane,

you did not provide the -matrix parameter, which is mandatory. If you add it, like in this test, it works:

java -cp /apps/gepard/1.40/dist/Gepard-1.40.jar org.gepard.client.cmdline.CommandLine -seq1 ref1.fasta -seq2 ref2.fasta -matrix /apps/gepard/1.40/resources/matrices/edna.mat -word 100 -window 1000 -outfile gepard_ref1_vs_ref2.png

Best, Thomas


ue Prof. Dr. Thomas Rattei bbc CUBE - Division of Computational Systems Biology cbc Dept. of Microbiology and Ecosystem Science ec cce.cc University of Vienna bbbc ccuc....b Althanstrasse 14 c bb........ce 1090 Vienna, Austria ue........cu Phone +43 1 4277 76680 ce......c bbue Mobile +43 664 60277 76680 e..ccucc be e-mail thomas.rattei@univie.ac.at bcc web cube.univie.ac.at cbb ____ u c

Am 21.04.2017 um 13:03 schrieb Stephane Plaisance notifications@github.com:

I have similar issues as above. I want to run many plots and would prefer cli. my command below does not complain and no output is created do I need to specify all parameters or are some set by default? the -word and -window were defined from a good GUI run Thanks for your help

java -cp /opt/biotools/gepard/gepard.jar org.gepard.client.cmdline.CommandLine -seq1 "ref1.fasta" -seq2 "ref2.fasta" -word 100 -window 1000 -outfile "gepard_ref1_vs_ref2.png"

Gepard 1.40 final - command line mode

Reference: Krumsiek J, Arnold R, Rattei T Gepard: A rapid and sensitive tool for creating dotplots on genome scale. Bioinformatics 2007; 23(8): 1026-8. PMID: 17309896

Parameters are supplied as -name value

Required parameters: -seq1: first sequence file -seq2: second sequence file -matrix: substitution matrix file -outfile: output file name

Dotplot image parameters: -maxwidth: maximum width of the generated image (default: 750) -maxheight: maximum height of the generated image (default: 750) -zoom: specify a zoom factor for the dotplot note: you can only use maxwidth/maxheight OR zoom when using maxwidth/maxheight the program tries to generate the largest possible dotplot within the given bounds -format: output format, one of: 'png', 'jpg', 'bmp' (default:PNG)

Dotplot computation parameters: -secondcomp use complementary of second sequence -word: word length for suffix array mode (default: 10) -window: window size for ordinary dotplot mode (default: 0) if a window value and no word value is specified, word=0 is assumed

Suffix array parameters: -safile load suffix array from file instead of calculating it -sasecondseq the suffix array is for the second sequence if -sasecondseq is NOT specified, the suffix array will be used for first sequence

Coordinate parameters (absolute values of % values) -from1,-to1 coordinates of first sequence -from2,-to2 coordinates of second sequence if these parameters are not specified the full sequence will be used

Display parameters: -lower lower limit for dot intensity (in %) -upper upper limit for dot intensity (in %) -greyscale greyscale start value (in %)

Miscellaneous: -silent generate no output (except error messages)

all tried commands execute like this even only specifying seq1 and seq2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/univieCUBE/gepard/issues/1#issuecomment-296167737, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0ZlDXFk1zpiyNJ2RKlZv5wVp7Fk7QDks5ryJQigaJpZM4HVrnG.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/univieCUBE/gepard","title":"univieCUBE/gepard","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/univieCUBE/gepard"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rattei in #1: Hello Stephane,\r\n\r\nyou did not provide the -matrix parameter, which is mandatory. If you add it, like in this test, it works:\r\n\r\njava -cp /apps/gepard/1.40/dist/Gepard-1.40.jar org.gepard.client.cmdline.CommandLine -seq1 ref1.fasta -seq2 ref2.fasta -matrix /apps/gepard/1.40/resources/matrices/edna.mat -word 100 -window 1000 -outfile gepard_ref1_vs_ref2.png\r\n\r\nBest,\r\nThomas\r\n\r\n__\r\n ue\r\nProf. Dr. Thomas Rattei bbc\r\nCUBE - Division of Computational Systems Biology cbc\r\nDept. of Microbiology and Ecosystem Science ec cce.cc\r\nUniversity of Vienna bbbc ccuc....b\r\nAlthanstrasse 14 c bb........ce\r\n1090 Vienna, Austria ue........cu\r\nPhone +43 1 4277 76680 ce......c bbue\r\nMobile +43 664 60277 76680 e..ccucc be\r\ne-mail thomas.rattei@univie.ac.at bcc\r\nweb cube.univie.ac.at cbb\r\n____ u c\r\n\r\n\u003e Am 21.04.2017 um 13:03 schrieb Stephane Plaisance \u003cnotifications@github.com\u003e:\r\n\u003e \r\n\u003e I have similar issues as above. I want to run many plots and would prefer cli.\r\n\u003e my command below does not complain and no output is created\r\n\u003e do I need to specify all parameters or are some set by default?\r\n\u003e the -word and -window were defined from a good GUI run\r\n\u003e Thanks for your help\r\n\u003e \r\n\u003e java -cp /opt/biotools/gepard/gepard.jar org.gepard.client.cmdline.CommandLine -seq1 \"ref1.fasta\" -seq2 \"ref2.fasta\" -word 100 -window 1000 -outfile \"gepard_ref1_vs_ref2.png\"\r\n\u003e \r\n\u003e Gepard 1.40 final - command line mode\r\n\u003e \r\n\u003e Reference:\r\n\u003e Krumsiek J, Arnold R, Rattei T\r\n\u003e Gepard: A rapid and sensitive tool for creating dotplots on genome scale.\r\n\u003e Bioinformatics 2007; 23(8): 1026-8. PMID: 17309896\r\n\u003e \r\n\u003e Parameters are supplied as -name value\r\n\u003e \r\n\u003e Required parameters:\r\n\u003e -seq1: first sequence file\r\n\u003e -seq2: second sequence file\r\n\u003e -matrix: substitution matrix file\r\n\u003e -outfile: output file name\r\n\u003e \r\n\u003e Dotplot image parameters:\r\n\u003e -maxwidth: maximum width of the generated image (default: 750)\r\n\u003e -maxheight: maximum height of the generated image (default: 750)\r\n\u003e -zoom: specify a zoom factor for the dotplot\r\n\u003e note: you can only use maxwidth/maxheight OR zoom\r\n\u003e when using maxwidth/maxheight the program tries to generate the largest\r\n\u003e possible dotplot within the given bounds\r\n\u003e -format: output format, one of: 'png', 'jpg', 'bmp' (default:PNG)\r\n\u003e \r\n\u003e Dotplot computation parameters:\r\n\u003e -secondcomp use complementary of second sequence\r\n\u003e -word: word length for suffix array mode (default: 10)\r\n\u003e -window: window size for ordinary dotplot mode (default: 0)\r\n\u003e if a window value and no word value is specified, word=0 is assumed\r\n\u003e \r\n\u003e Suffix array parameters:\r\n\u003e -safile load suffix array from file instead of calculating it\r\n\u003e -sasecondseq the suffix array is for the second sequence\r\n\u003e if -sasecondseq is NOT specified, the suffix array will be used for first sequence\r\n\u003e \r\n\u003e Coordinate parameters (absolute values of % values)\r\n\u003e -from1,-to1 coordinates of first sequence\r\n\u003e -from2,-to2 coordinates of second sequence\r\n\u003e if these parameters are not specified the full sequence will be used\r\n\u003e \r\n\u003e Display parameters:\r\n\u003e -lower lower limit for dot intensity (in %)\r\n\u003e -upper upper limit for dot intensity (in %)\r\n\u003e -greyscale greyscale start value (in %)\r\n\u003e \r\n\u003e Miscellaneous:\r\n\u003e -silent generate no output (except error messages)\r\n\u003e \r\n\u003e all tried commands execute like this even only specifying seq1 and seq2\r\n\u003e \r\n\u003e —\r\n\u003e You are receiving this because you commented.\r\n\u003e Reply to this email directly, view it on GitHub, or mute the thread.\r\n\u003e \r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/univieCUBE/gepard/issues/1#issuecomment-296167737"}}}

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

doivosevic commented 4 years ago

Would it be possible to start gepard from command line with parameters to the 2 fasta files which need comparison? Are there instructions for the command line parameters if there are any?

rattei commented 4 years ago

Hello,

When you run the gepard application from the command line, as explained in the readme.txt, it shows the usage:

java -cp dist/Gepard-1.40.jar org.gepard.client.cmdline.CommandLine

Gepard 1.40 final - command line mode

Reference: Krumsiek J, Arnold R, Rattei T Gepard: A rapid and sensitive tool for creating dotplots on genome scale. Bioinformatics 2007; 23(8): 1026-8. PMID: 17309896

Parameters are supplied as -name value

Required parameters: -seq1: first sequence file -seq2: second sequence file -matrix: substitution matrix file -outfile: output file name

Dotplot image parameters: -maxwidth: maximum width of the generated image (default: 750) -maxheight: maximum height of the generated image (default: 750) -zoom: specify a zoom factor for the dotplot note: you can only use maxwidth/maxheight OR zoom when using maxwidth/maxheight the program tries to generate the largest possible dotplot within the given bounds -format: output format, one of: 'png', 'jpg', 'bmp' (default:PNG)

Dotplot computation parameters: -secondcomp use complementary of second sequence -word: word length for suffix array mode (default: 10) -window: window size for ordinary dotplot mode (default: 0) if a window value and no word value is specified, word=0 is assumed

Suffix array parameters: -safile load suffix array from file instead of calculating it -sasecondseq the suffix array is for the second sequence if -sasecondseq is NOT specified, the suffix array will be used for first sequence

Coordinate parameters (absolute values of % values) -from1,-to1 coordinates of first sequence -from2,-to2 coordinates of second sequence if these parameters are not specified the full sequence will be used

Display parameters: -lower lower limit for dot intensity (in %) -upper upper limit for dot intensity (in %) -greyscale greyscale start value (in %)

Miscellaneous: -silent generate no output (except error messages)

Best regards, Thomas Rattei


Prof. Dr. Thomas Rattei CUBE - Division of Computational Systems Biology Dept. of Microbiology and Ecosystem Science University of Vienna Althanstrasse 14 1090 Vienna, Austria Phone +43 1 4277 91280 Mobile +43 664 60277 91280 e-mail thomas.rattei@univie.ac.atmailto:thomas.rattei@univie.ac.at web cube.univie.ac.at


On 23.01.2020, at 19:11, Dominik Ivosevic notifications@github.com<mailto:notifications@github.com> wrote:

Would it be possible to start gepard from command line with parameters to the 2 fasta files which need comparison? Are there instructions for the command line parameters if there are any?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/univieCUBE/gepard/issues/1?email_source=notifications&email_token=ACZNFPL36P5RIGSHXEVHS7LQ7HMUVA5CNFSM4B2WXHDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYI7QI#issuecomment-577802177, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACZNFPIKAFGLQAVDD65BGETQ7HMUVANCNFSM4B2WXHDA.