annotate galaxy_integration.org @ 4:060fc04af21c draft default tip

planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit dcff0045d0b212ebc5c4bef6a824bdbd3bb16ac3
author petr-novak
date Fri, 08 Dec 2023 13:11:02 +0000
parents ccaedca97e5e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
1 #+TITLE: Building galaxy tools
1
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
2 * Long reads sampling
0
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
3 #+BEGIN_SRC sh
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
4 # require planemo
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
5 if [ -e "long_reads_sampling.xml" ]
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
6 then
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
7 echo "backing up original file"
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
8 cp long_reads_sampling.xml long_reads_sampling.xml.backup
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
9 fi
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
10 planemo tool_init --force --id 'long_reads_sampling' \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
11 --name 'Create sample of long reads' \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
12 --requirement biopython \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
13 --example_command 'long_reads_sampling.py -i input_seq.fasta -o output_seq.fasta -l total_length -s seed' \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
14 --example_input 'input_seq.fasta' \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
15 --example_output 'output_seq.fasta'
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
16
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
17 #+END_SRC
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
18
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
19 #+RESULTS:
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
20 | backing | up | original | file |
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
21 | Tool | written | to | long_reads_sampling.xml |
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
22
1
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
23
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
24
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
25
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
26 * Short read simulator
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
27 #+BEGIN_SRC sh
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
28 # require planemo
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
29 if [ -e "long2short.xml" ]
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
30 then
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
31 echo "backing up original file"
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
32 cp long2short.xml long2short.xml.backup
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
33 fi
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
34 /home/petr/anaconda3/bin/planemo tool_init --force --id 'long2short' \
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
35 --name 'Get pseudo short paired end reads from long reads' \
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
36 --requirement biopython \
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
37 --requirement python@3.6 \
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
38 --example_command 'long2short.py -i input_seq.fasta -o output_seq.fasta -cov coverage -L insert_length -l read_length' \
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
39 --example_input 'input_seq.fasta' \
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
40 --example_output 'output_seq.fasta'
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
41
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
42 #+END_SRC
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
43
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
44 #+RESULTS:
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
45 : Tool written to long2short.xml
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
46
0
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
47 file must be manually edited
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
48
1
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
49
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
50 * create planemo repo with all tools
0
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
51 # create toolshed configuration
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
52 #+BEGIN_SRC bash
1
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
53 /home/petr/anaconda3/bin/planemo shed_init --name=long_reads_sampling \
0
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
54 --owner=repeatexplorer \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
55 --description=long_reads_sampling \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
56 --long_description="Create sample of long reads" \
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
57 --category="Fasta Manipulation"
1
5596bafd2119 Uploaded
petr-novak
parents: 0
diff changeset
58 /home/petr/anaconda3/bin/planemo shed_lint --tools
0
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
59 #+END_SRC
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
60
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
61 #+RESULTS:
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
62
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
63 # creating repository - once
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
64
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
65 #+BEGIN_SRC bash
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
66 # it requires planemo server running!
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
67 planemo shed_create --shed_target local
dd46956ff61f Uploaded
petr-novak
parents:
diff changeset
68 #+END_SRC
2
ccaedca97e5e planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit 2b3bc2334397749509cdf6fc432d891a09763c4f-dirty
petr-novak
parents: 1
diff changeset
69
ccaedca97e5e planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit 2b3bc2334397749509cdf6fc432d891a09763c4f-dirty
petr-novak
parents: 1
diff changeset
70 # create tarball which can be uploaded to repository manualy
ccaedca97e5e planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit 2b3bc2334397749509cdf6fc432d891a09763c4f-dirty
petr-novak
parents: 1
diff changeset
71
ccaedca97e5e planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit 2b3bc2334397749509cdf6fc432d891a09763c4f-dirty
petr-novak
parents: 1
diff changeset
72 #+BEGIN_SRC sh
ccaedca97e5e planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit 2b3bc2334397749509cdf6fc432d891a09763c4f-dirty
petr-novak
parents: 1
diff changeset
73 planemo shed_build .
ccaedca97e5e planemo upload for repository https://github.com/kavonrtep/galaxy_tools commit 2b3bc2334397749509cdf6fc432d891a09763c4f-dirty
petr-novak
parents: 1
diff changeset
74 #+END_SRC