Skip to content

Commit cd0e3f7

Browse files
committed
Updating image links to new FluentDNA.com
1 parent d71dba4 commit cd0e3f7

File tree

4 files changed

+33
-40
lines changed

4 files changed

+33
-40
lines changed

FluentDNA/fluentdna.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ def ddv(args):
255255
done(args)
256256

257257
elif args.layout == 'ideogram':
258-
assert args.radix, "You must provide a --radix argument for Ideograms."
258+
if not args.radix:
259+
print("You must provide a --radix argument for Ideograms.")
260+
print("For example --radix='([5,5,5,5,11], [5,5,5,5,5 ,53], 1, 1)'")
261+
sys.exit(1)
259262
radix_settings = eval(args.radix)
260263
if hasattr(radix_settings, '__len__') and len(radix_settings) == 4 and \
261264
type(radix_settings[0]) == type(radix_settings[1]) == type([]) and \

README.md

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ This application creates visualizations of FASTA formatted DNA nucleotide data.
44
FluentDNA generates a DeepZoomImage visualizations similar to Google Maps for FASTA files.
55

66
From 2Mbp of Genomic Sequence, FluentDNA generates this image. Changes in nucleotide bias make
7-
individual genome elements visible even without an annotation. Add your annotation files to see how
8-
they align with the sequence features.
9-
![Example FluentDNA output of Human Chr19 2MBp](https://dnaskittle.com/ddvresults/dnadata/Test%20Simple/sources/Test%20Simple.png)
7+
individual genome elements visible even without an annotation. Add your annotation files to see how they align with the sequence features.
8+
![Example FluentDNA output of Human Chr19 2MBp](https://fluentdna.com/archive/Test%20Simple/sources/Test%20Simple.png)
109

1110
***
1211
## FluentDNA Quick Start
@@ -18,13 +17,12 @@ You can start using FluentDNA:
1817
4. Your result files will be placed in the FluentDNA directory `FluentDNA/results/`. Once your private server has started,
1918
all your results are viewable at [http://localhost:8000](http://127.0.0.1:8000).
2019

21-
To use FluentDNA as a python module (required for **Linux**), follow the [pip install instructions](https://github.com/josiahseaman/FluentDNA/blob/python-master/docs/installation.md).
20+
FluentDNA can be installed as a python module (required for **Linux**).
21+
See the [pip install instructions](https://github.com/josiahseaman/FluentDNA/blob/python-master/docs/installation.md) for more details.
2222
```
23-
pip install --upgrade DNASkittleUtils
2423
pip install --upgrade FluentDNA
25-
```
26-
**Locating Results:** You will need to be using the same computer the server is running on. The server will not be visible
27-
over network or internet unless your administrator opens the port.
24+
```
25+
**Locating Results:** You will need to be using the same computer the server is running on. The server will not be visible over network or internet unless your administrator opens the port.
2826

2927
***
3028

@@ -47,12 +45,10 @@ Generating a basic visualization of a FASTA file downloaded from NCBI or another
4745

4846
This generates an image pyramid with the standard legend (insert image of legend) and nucleotide number display.
4947

50-
**Input Data Example:**
51-
52-
* FA File: [FluentDNA/example_data/hg38_chr19_sample.fa](https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/hg38_chr19_sample.fa)
48+
**Input Data Example:** [FluentDNA/example_data/hg38_chr19_sample.fa](https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/hg38_chr19_sample.fa)
5349

54-
**Result:** [Hg38 chr19 sample](https://dnaskittle.com/ddvresults/dnadata/Test%20Simple/)
55-
![Example FluentDNA output of Human Chr19 2MBp](https://dnaskittle.com/ddvresults/dnadata/Test%20Simple/sources/Test%20Simple.png)
50+
**Result:** [Hg38 chr19 sample](https://fluentdna.com/archive/Test%20Simple/sources/Test%20Simple.png)
51+
![Example FluentDNA output of Human Chr19 2MBp](https://fluentdna.com/archive/Test%20Simple/sources/Test%20Simple.png)
5652

5753
It is also possible to generate an image file only that can be accessed with an image viewer using `--no_webpage`.
5854

@@ -74,17 +70,17 @@ GCCCTAT
7470
The following command generates a multi-part FASTA file visualization:
7571

7672
**Input Data Example:**
77-
* FA File: https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/Human%20selenoproteins.fa
73+
[Human Selenoproteins.fa](https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/Human%20selenoproteins.fa)
7874

79-
**Command:** `./fluentdna --fasta="FluentDNA/example_data/Human selenoproteins.fa"`
80-
**Result:** [Human Selenoproteins](https://dnaskittle.com/ddvresults/dnadata/Human%20selenoproteins/)
75+
**Command:** `./fluentdna --fasta="FluentDNA/example_data/Human selenoproteins.fa"`
76+
**Result:** [Human Selenoproteins](https://FluentDNA.com/archive/Human%20selenoproteins/)
8177

82-
![](https://dnaskittle.com/ddvresults/dnadata/Human%20selenoproteins/Human%20selenoproteins.png)
78+
![](https://FluentDNA.com/archive/Human%20selenoproteins/Human%20selenoproteins.png)
8379

8480
This generates a multi-scale image of the multi-part FASTA file. Note that if you don't specify `--outname=` it will default to the name of the FASTA file.
8581

8682
Using this simple command, FluentDNA can visualize an entire draft genome at once.
87-
**Result:** [Ash Tree Genome (_Fraxinus excelsior_)](https://dnaskittle.com/ddvresults/dnadata/Ash%20Tree%20Genome%20-%20BATG-0_5/)
83+
**Result:** [Ash Tree Genome (_Fraxinus excelsior_)](https://FluentDNA.com/archive/Ash%20Tree%20Genome%20-%20BATG-0_5/)
8884
![Fraxinus excelsior genome](https://github.com/josiahseaman/FluentDNA/raw/python-master/FluentDNA/example_data/British%20Ash%20Tree%20Genome.png)
8985

9086
Additional options - see also:
@@ -101,11 +97,10 @@ By specifying `--ref_annotation=` you can include a gene annotation to be render
10197
**Command:** `./fluentdna --fasta="FluentDNA/example_data/gnetum_sample.fa" --ref_annotation="FluentDNA/example_data/Gnetum_sample_genes.gff"`
10298

10399
**Input Data Example:**
104-
* GFF File: https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/Gnetum_sample_genes.gff
105-
* FA file: https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/gnetum_sample.fa
106-
100+
* [Gnetum_sample_genes.gff](https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/Gnetum_sample_genes.gff)
101+
* [Gnetum_sample.fa](https://github.com/josiahseaman/FluentDNA/blob/python-master/FluentDNA/example_data/gnetum_sample.fa)
107102

108-
**Result:** [Gnetum montanum Annotation](https://dnaskittle.com/ddvresults/dnadata/Gnetum%20montanum%20Annotation%20-%20blue%20gene%20-%20yellow%20exon%20-%20green%20CDS/)
103+
**Result:** [Gnetum montanum Annotation](https://FluentDNA.com/archive/Gnetum%20montanum%20Annotation%20-%20blue%20gene%20-%20yellow%20exon%20-%20green%20CDS/)
109104
![Gnetum montanum Annotation](https://github.com/josiahseaman/FluentDNA/raw/python-master/FluentDNA/example_data/Gnetum%20montanum%20Annotation%20-%20blue%20gene%20-%20yellow%20exon%20-%20green%20CDS.png)
110105

111106
You can download the full _Gnetum montanum_ files from [Data Dryad](https://datadryad.org//resource/doi:10.5061/dryad.0vm37).
@@ -117,7 +112,7 @@ You can download the full _Gnetum montanum_ files from [Data Dryad](https://data
117112
To visualize a multiple sequence alignment you need to use the `--layout=alignment` option to tell FluentDNA to treat each entry in a multipart fasta file as being one row of an alignment. To show many MSAs at once, just point `--fasta=` to a folder instead of a file.
118113

119114
**Input Data Example:**
120-
* Folder with FA files: https://github.com/josiahseaman/FluentDNA/tree/python-master/FluentDNA/example_data/alignments
115+
* [Folder with FA files](https://github.com/josiahseaman/FluentDNA/tree/python-master/FluentDNA/example_data/alignments)
121116

122117
**Important Note!** Make sure there are no other files in your folder besides sequence files. If FluentDNA decides on an unreasonably long "max width" it is because it picked up a non-sequence file in the folder.
123118

@@ -133,10 +128,10 @@ ACTCAAAACGATCTCTCTAGGGT
133128

134129
This generates a multi-scale image of the multiple alignment. The multiple alignment results are sorted by gene name. For a smoother layout use `--sort_contigs` which will sort them by row count (copy number).
135130

136-
**Result:** [Example 7 Gene Families from Fraxinus](https://dnaskittle.com/ddvresults/dnadata/Example%207%20Gene%20Families%20from%20Fraxinus/)
131+
**Result:** [Example 7 Gene Families from Fraxinus](https://FluentDNA.com/archive/Example%207%20Gene%20Families%20from%20Fraxinus/)
137132
![](https://raw.githubusercontent.com/josiahseaman/FluentDNA/python-master/FluentDNA/example_data/Example%207%20Gene%20Families%20from%20Fraxinus.png)
138133

139-
This layout allows users to check thousands of MSAs. Here we used FluentDNA to quality check the merging software for 2,961 putative gene families: [Fraxinus Homologous Gene Groups](https://dnaskittle.com/ddvresults/dnadata/Fraxinus%20Homologous%20Gene%20Groups/)
134+
This layout allows users to check thousands of MSAs. Here we used FluentDNA to quality check the merging software for 2,961 putative gene families: [Fraxinus Homologous Gene Groups](https://FluentDNA.com/archive/Fraxinus%20Homologous%20Gene%20Groups/)
140135

141136
***
142137

@@ -158,7 +153,7 @@ This generates a multi-scale image of the alignment. There are 4 columns in thi
158153
* Column 3. Genome B (unique DNA of B)
159154
* Column 4. Genome B (gapped entire DNA of genome B)
160155

161-
**Result:** [Human vs Chimpanzee_chr19 (natural colors)](https://dnaskittle.com/ddvresults/dnadata/Parallel_hg38_and_panTro5_chr19/)
156+
**Result:** [Human vs Chimpanzee_chr19 (natural colors)](https://FluentDNA.com/archive/Parallel_hg38_and_panTro5_chr19/)
162157
![Rows of sequence side by side Human and chimp. Gaps where they have unique sequence.](https://github.com/josiahseaman/FluentDNA/raw/python-master/FluentDNA/example_data/Human%20vs%20Chimpanzee_chr19.png)
163158

164159
Figure 1 in the paper can be seen at Nucleotide Position 548,505 which corresponds to HG38 chr19:458,731. The difference in coordinates is due to the gaps inserted for sake of alignment.

Requirements.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
# NOTE: The pip, setuptools, wheel, and cx_Freeze requirements are only needed if you plan to build a binary distribution in Linux
2-
#pip==9.0.1
3-
#setuptools==38.2.4
4-
#wheel==0.24.0
5-
#cx_Freeze==5.1.1
6-
71
DNASkittleUtils>=1.0.13
82
Pillow>=3.2
9-
psutil==5.4
10-
blist>=1.3
3+
psutil>=5.4
4+
#blist>=1.3 use easy_install https://github.com/josiahseaman/FluentDNA/releases/download/2.5.0/blist-1.3.6-cp37-cp37m-win_amd64.whl
5+
# or download your own wheel from https://www.lfd.uci.edu/~gohlke/pythonlibs/#blist
116
natsort>=5.1
127
numpy>=1.13,<=1.18
138

docs/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
This will guide you through installing FluentDNA as a python module called "FluentDNA". This is the ideal
22
option for developers who want to integrate or tweak FluentDNA. Non-technical users should use
3-
a release from the [Releases Page](https://github.com/josiahseaman/FluentDNA/releases).
3+
a release from the [Releases Page](https://github.com/josiahseaman/FluentDNA/releases).
44

55
## Quick Start
66
You will need:
7-
1. Familiarity with the command line: [Windows Tutorial](https://github.com/pettarin/python-on-windows) [Mac Tutorial](http://docs.python-guide.org/en/latest/starting/install3/osx/#install3-osx)
7+
1. Familiarity with the command line: [Windows Tutorial](https://github.com/pettarin/python-on-windows), [Mac Tutorial](http://docs.python-guide.org/en/latest/starting/install3/osx/#install3-osx)
88
1. Python (Windows must by Python 3.6 or newer): [Download Link](https://www.python.org/downloads/release/python-365/)
99
2. Git: [Download Link](https://git-scm.com/downloads)
1010

1111
**Installation**
1212
From a command line in your python virtual environment:
1313
```
14-
pip install --upgrade DNASkittleUtils
1514
pip install --upgrade FluentDNA
1615
```
1716
If you get an error about html_template/ or example_data/ you need to **update pip and setuptools**. Then rerun the FluentDNA install.
@@ -22,9 +21,10 @@ pip install --upgrade setuptools
2221

2322
**Running**
2423
fluentdna.py will be placed in the scripts folder and accessible through PYTHONPATH, it's a good idea to add this to PATH.
25-
The `example_data` directory will end up in your site packages, so you'll need to reference the full path.
24+
You should be able to use `fluentdna.py` as an executable from anywhere, depending on your setup. Running `fluentdna.py` with no arguments will point you to your *example_data/* and *results/* paths in your site packages, so you'll need to reference the full path.
25+
26+
`fluentdna.py --fasta="/path/to/site-packages/FluentDNA/example_data/hg38_chr19_sample.fa"`
2627

27-
`python /path/to/site-packages/FluentDNA/fluentdna.py --fasta="/path/to/site-packages/FluentDNA/example_data/hg38_chr19_sample.fa"`
2828
**Note:** Windows ignores the #!/bin/usr/python line, you'll need to use python and the full path to the script:
2929
`python C:\yourvenv\Scripts\fluentdna.py --fasta="C:\path\to\yourfasta.fa"`
3030

0 commit comments

Comments
 (0)