mapp2g 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +25 -17
- data/exe/mapp2g +10 -2
- data/lib/mapp2g/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '029a95186aca02659011cc06f0cdc67f85aa7c8fbda820c06e504a772158cd0a'
|
4
|
+
data.tar.gz: bbaac99c22269dfbba7980ee2ee7c90c7f6bc7f0874b57cd397c1f6d803f953e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f41a7fad9ef596f1af730dfd235895c1f04365f5672d2ead4a6ae1979738ee3ba601707c440d48708e75e6f0d6b49944e6ba2861bfeac1ca004ceebba48783e
|
7
|
+
data.tar.gz: ec1c3ecd64349b0b880a35d4148066ce4a4c5888f789c8223b0fe93d089c254d11341f293e9e535e4c29b2e29508489eb945f29c72756b52ac4f0b64f6b90590
|
data/README.md
CHANGED
@@ -1,34 +1,42 @@
|
|
1
1
|
# Mapp2g
|
2
2
|
|
3
|
-
TODO: Delete this and the text below, and describe your gem
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mapp2g`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
|
-
|
5
|
+
### Pre-requisites
|
10
6
|
|
11
|
-
|
7
|
+
* NCBI blast
|
8
|
+
* exonerate
|
9
|
+
|
10
|
+
These two software should be installed. mapp2g is wrtten in Ruby. Ruby sholud be installed.
|
12
11
|
|
13
|
-
|
12
|
+
### Install mapp2g using gem
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
```
|
15
|
+
gem install mapp2g
|
16
|
+
```
|
18
17
|
|
19
18
|
## Usage
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
```
|
21
|
+
Usage: mapp2g [options]
|
22
|
+
-q, --query QUERY query amino acid sequences in FASTA format
|
23
|
+
-g, --genome BLASTDB genome reference as blastdb
|
24
|
+
-o, --outdir [OUTDIR] output directory. DEFAULT: mapp2g_out_{process_id}
|
25
|
+
-v, --version show version number
|
26
|
+
-h, --help show this help message and exit
|
27
|
+
```
|
24
28
|
|
25
|
-
|
29
|
+
(example)
|
30
|
+
```
|
31
|
+
mapp2g -q human_genome.fasta -q p53.protein.fasta
|
32
|
+
```
|
26
33
|
|
27
|
-
|
34
|
+
Reference genomes should be formated in blastdb before running mapp2g. blastdb can be made as follws:
|
28
35
|
|
29
|
-
|
36
|
+
```
|
37
|
+
makeblastdb -in human_genome.fasta -dbtype nucl -parse_seqids
|
38
|
+
```
|
30
39
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mapp2g.
|
32
40
|
|
33
41
|
## License
|
34
42
|
|
data/exe/mapp2g
CHANGED
@@ -15,14 +15,22 @@ begin
|
|
15
15
|
puts Mapp2g::VERSION
|
16
16
|
exit
|
17
17
|
end
|
18
|
-
opt.on("-q QUERY", "--query", "query amino acid sequences in FASTA format"){|v| OPTS[:q] = v}
|
19
|
-
opt.on("-g BLASTDB", "--genome", "genome reference as blastdb"){|v| OPTS[:g] = v}
|
18
|
+
opt.on("-q QUERY", "--query", "query amino acid sequences in FASTA format. REQUIRED."){|v| OPTS[:q] = v}
|
19
|
+
opt.on("-g BLASTDB", "--genome", "genome reference as blastdb. REQUIRED."){|v| OPTS[:g] = v}
|
20
20
|
opt.on("-o [OUTDIR]", "--outdir", "output directory. DEFAULT: mapp2g_out_{process_id}"){|v| OPTS[:o] = v}
|
21
21
|
opt.on_tail('-h', '--help', 'show this help message and exit') do
|
22
22
|
puts opt
|
23
23
|
exit
|
24
24
|
end
|
25
|
+
|
26
|
+
if ARGV.size == 0
|
27
|
+
puts opt
|
28
|
+
exit
|
29
|
+
end
|
30
|
+
|
25
31
|
opt.parse!(ARGV)
|
32
|
+
|
33
|
+
|
26
34
|
rescue => e
|
27
35
|
puts "ERROR: #{e}\nSee #{opt}"
|
28
36
|
exit
|
data/lib/mapp2g/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mapp2g
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shuji Shigenobu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: mapp2g is a bioinformatics software, which map and align protein sequences
|
14
14
|
(amino acid sequences) to genome references in a splicing-aware way. mapp2g alignment
|