Module api
Classes to facilitate usage within Python scripts / Notebooks
Build
Bases: Command
Build command object.
Source code in src/pynteny/api.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | |
__init__(data, prepend=False, outfile=None, logfile=None, processes=None, tempdir=None)
Translate nucleotide assembly file and assign contig and gene location info to each identified ORF (using prodigal).
| Parameters: |
|
|---|
Source code in src/pynteny/api.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | |
run()
Run pynteny search
Source code in src/pynteny/api.py
207 208 209 | |
Command
Parent class for Pynteny command
Source code in src/pynteny/api.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
cite()
staticmethod
Display Pynteny citation
Source code in src/pynteny/api.py
57 58 59 60 61 62 | |
update(argname, value)
Update argument value in pynteny command.
| Parameters: |
|
|---|
Source code in src/pynteny/api.py
48 49 50 51 52 53 54 55 | |
Download
Bases: Command
Download HMM database from NCBI.
Source code in src/pynteny/api.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
__init__(outdir, logfile=None, force=False, unpack=False)
Download HMM database from NCBI.
| Parameters: |
|
|---|
Source code in src/pynteny/api.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |
run()
Run pynteny download
Source code in src/pynteny/api.py
239 240 241 | |
Search
Bases: Command
Search command object.
Source code in src/pynteny/api.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
__init__(data, synteny_struc, gene_ids=False, unordered=False, best_hmm_wins=False, reuse=False, hmm_dir=None, hmm_meta=None, outdir=None, prefix='', hmmsearch_args=None, logfile=None, processes=None)
Query sequence database for HMM hits arranged in provided synteny structure.
| Parameters: |
|
|---|
Source code in src/pynteny/api.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
parse_genes(synteny_struc)
Parse gene IDs in synteny structure and find corresponding HMM names in provided HMM database.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/api.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
run()
Run pynteny search
Source code in src/pynteny/api.py
170 171 172 | |
Module filter
Tools to filter HMM hits by synteny structure
SyntenyHMMfilter
Tools to search for synteny structures among sets of hmm models
Source code in src/pynteny/filter.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | |
__init__(hmm_hits, synteny_structure, unordered=True, best_hmm_wins=False)
Search for contigs that satisfy the given gene synteny structure.
| Parameters: |
|
|---|
Source code in src/pynteny/filter.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | |
filter_hits_by_synteny_structure()
Search for contigs that satisfy the given gene synteny structure.
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | |
get_all_HMM_hits()
Group and preprocess all hit labels into a single dataframe.
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | |
SyntenyHits
Store and manipulate synteny hits by contig
Source code in src/pynteny/filter.py
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | |
hits
property
Return synteny hits.
| Returns: |
|
|---|
__init__(synteny_hits)
Initialize from synteny hits object.
Source code in src/pynteny/filter.py
392 393 394 395 396 | |
add_HMM_meta_info_to_hits(hmm_meta)
Add molecular metadata to synteny hits.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | |
from_hits_dict(hits_by_contig)
classmethod
Initialize SyntenyHits object from hits_by_contig dictionary.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
430 431 432 433 434 435 436 437 438 439 440 | |
write_hit_sequences_to_FASTA_files(sequence_database, output_dir, output_prefix=None)
Write matching sequences to FASTA files.
| Parameters: |
|
|---|
Source code in src/pynteny/filter.py
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | |
write_to_TSV(output_tsv)
Write synteny hits to a TSV file.
| Parameters: |
|
|---|
Source code in src/pynteny/filter.py
480 481 482 483 484 485 486 487 | |
SyntenyPatternFilters
Methods to filter hmm hits in the same contig by synteny structure or collinearity. These filters are inputs to pandas.Dataframe.rolling method.
Source code in src/pynteny/filter.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
__init__(synteny_structure, unordered=False)
Initialize filter class from synteny structure.
| Parameters: |
|
|---|
Source code in src/pynteny/filter.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
contains_distance_pattern(data)
Check if series items satisfy the maximum distance between HMM hits.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
contains_hmm_pattern(data)
Check if series items contain a profile HMM
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
88 89 90 91 92 93 94 95 96 97 98 99 100 | |
contains_strand_pattern(data)
Check if series items satisfy the strand pattern between HMM hits.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
filter_FASTA_by_synteny_structure(synteny_structure, input_fasta, input_hmms, unordered=False, best_hmm_wins=False, hmm_meta=None, hmmer_output_dir=None, reuse_hmmer_results=True, method='hmmsearch', processes=None, additional_args=None)
Generate protein-specific database by filtering sequence database to only contain sequences which satisfy the provided (gene/hmm) structure.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/filter.py
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 | |
Module preprocessing
Tools to preprocess sequence databases
- Remove illegal characters from peptide sequences
- Remove illegal symbols from file paths
- Relabel fasta records and make dictionary with old labels
Database
_Sequence database constructor
Source code in src/pynteny/preprocessing.py
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 | |
__init__(data)
Initialize Database object
| Parameters: |
|
|---|
| Raises: |
|
|---|
Source code in src/pynteny/preprocessing.py
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 | |
build(seq_prefix=None, prepend_file_name=False, output_file=None, processes=None, tempdir=None)
Build database from data files.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 | |
is_fasta(filename)
staticmethod
Check if file is in fasta format
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 | |
is_gbk(filename)
staticmethod
Check if file is in genbank format
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 | |
FASTA
Handle and process fasta files.
Source code in src/pynteny/preprocessing.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | |
file_path
property
writable
Set new path to fasta file
| Parameters: |
|
|---|
| Returns: |
|
|---|
__init__(input_file)
Initialize FASTA object.
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
150 151 152 153 154 155 156 | |
add_prefix_to_records(prefix, output_file=None, point_to_new_file=True)
Add prefix to sequence records in FASTA
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | |
filter_by_IDs(record_ids, output_file=None, point_to_new_file=True)
Filter records in fasta file matching provided IDs.
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | |
filter_by_minimum_length(min_length, output_file=None, point_to_new_file=True)
Filter records in fasta file by minimum length.
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | |
from_FASTA_directory(input_dir, merged_fasta=None, prepend_file_name=False)
classmethod
Initialize FASTA class from directory of fasta files.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
remove_corrupted_sequences(output_file=None, is_peptide=True, keep_stop_codon=False, point_to_new_file=True)
Filter out (DNA or peptide) sequences containing illegal characters.
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
remove_duplicates(output_file=None, export_duplicates=False, point_to_new_file=True)
Removes duplicate entries (either by sequence or ID) from fasta.
| Parameters: |
|
|---|
| Yields: |
|
|---|
Source code in src/pynteny/preprocessing.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | |
split_by_contigs(output_dir=None)
Split large fasta file into several ones containing one contig each.
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | |
FASTAmerger
Source code in src/pynteny/preprocessing.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
merge(output_file=None, prepend_file_name=False)
Merge input fasta files into a one (multi)fasta file.
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
prepend_filename_to_record_names(output_dir)
Prepend file name to each record label in fasta file
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
GeneAnnotator
Run prodigal on assembly, predict ORFs and extract location info
Source code in src/pynteny/preprocessing.py
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 | |
__init__(assembly)
Initialize GeneAnnotator
| Parameters: |
|
|---|
Source code in src/pynteny/preprocessing.py
537 538 539 540 541 542 543 | |
annotate(processes=None, metagenome=True, output_file=None, prodigal_args=None, tempdir=None)
Run prodigal on assembly and export single fasta file with peptide ORFs predictions
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 | |
LabelledFASTA
Bases: FASTA
Tools to add and parse FASTA with positional info on record tags
Source code in src/pynteny/preprocessing.py
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | |
from_genbank(gbk_data, output_file=None, prefix=None, nucleotide=False, prepend_file_name=False)
classmethod
Assign gene positional info, such as contig, gene number and loci to each record in genbank database and return LabelledFASTA object.
| Parameters: |
|
|---|
Returns: LabelledFASTA: object containing the labelled peptide database.
Source code in src/pynteny/preprocessing.py
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | |
from_prodigal_output(prodigal_faa, output_file=None)
classmethod
Instantiate class from prodigal output file. Extract positional gene info from prodigal output and export to fasta file.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | |
is_legit_DNA_sequence(record_seq)
Assert that DNA sequence only contains valid symbols.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
80 81 82 83 84 85 86 87 88 89 90 91 | |
is_legit_peptide_sequence(record_seq)
Assert that peptide sequence only contains valid symbols.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
remove_stop_sodon_signals(record_seq)
Remove stop codon signals from peptide sequence
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/preprocessing.py
32 33 34 35 36 37 38 39 40 41 | |
Module hmm
Tools to parse Hmmer output and PGAP (HMM) database
HMMDatabase
Base class for HMM databases
Source code in src/pynteny/hmm.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
meta
property
Return PFAM metadata
| Returns: |
|
|---|
meta_file
property
Return path to metadata file
| Returns: |
|
|---|
__init__(metadata_file, metadata_columns=None)
Initialize class HMMDatabase
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
get_HMM_gene_ID(hmm_name)
Get gene symbols matching given hmm.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/hmm.py
204 205 206 207 208 209 210 211 212 213 214 | |
get_HMM_group_for_gene_symbol(gene_symbol)
Get HMMs corresponding to gene symbol in PGAP metadata. If more than one HMM matching gene symbol, return a HMM group
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/hmm.py
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | |
get_HMM_names_by_gene_symbol(gene_symbol)
Try to retrieve HMM by its gene symbol, more than one HMM may map to a single gene symbol
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/hmm.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |
get_meta_info_for_HMM(hmm_name)
Get meta info for given hmm.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/hmm.py
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
HMMER
Run Hmmer on multiple hmms and parse output
Source code in src/pynteny/hmm.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
hmm_names
property
Get file names of input HMMs
| Returns: |
|
|---|
__init__(input_hmms, hmm_output_dir, input_data, additional_args=None, processes=None)
Initialize class HMMER
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
get_HMMER_tables(reuse_hmmer_results=True, method='hmmsearch')
Run hmmer for given hmm list
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/hmm.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
parse_HMM_search_output(hmmer_output)
staticmethod
Parse hmmsearch or hmmscan summary table output file.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/hmm.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
PFAM
Bases: HMMDatabase
Tools to preprocess the PFAM-A hmm database
Source code in src/pynteny/hmm.py
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | |
construct_meta_file(hmm_database, meta_outfile=None)
Construct metadata file from individual HMM files.
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | |
from_gz_file(hmm_gz_file, hmm_outdir=None, meta_outfile=None)
classmethod
Initialize PFAM class from hmm file
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |
PGAP
Bases: HMMDatabase
Tools to parse PGAP hmm database metadata
Source code in src/pynteny/hmm.py
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
__init__(*args, **kwargs)
Initialize class PGAP
Source code in src/pynteny/hmm.py
238 239 240 | |
remove_missing_HMMs_from_metadata(hmm_database, meta_outfile=None)
Remove HMMs from metadata that are not in HMM directory
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
download_pfam(download_dir, unpack=False)
Download PFAM database
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | |
download_pgap(download_dir, unpack=False)
Download PGAP database
| Parameters: |
|
|---|
Source code in src/pynteny/hmm.py
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | |
Module labelparser
Tools to parse record labels to extract coded info
parse(label)
Parse sequence labels to obtain contig and locus info
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/parsers/labelparser.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
parse_from_list(labels)
Parse labels in list of labels and return DataFrame.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/parsers/labelparser.py
52 53 54 55 56 57 58 59 60 61 | |
Module syntenyparser
Tools to parse synteny structure strings
contains_HMM_groups(synteny_structure)
Check whether structure contains groups of gene-equivalent HMMs.
Source code in src/pynteny/parsers/syntenyparser.py
26 27 28 | |
get_HMM_groups_in_structure(synteny_structure)
Get hmm names employed in synteny structure, if more than one hmm for the same gene, return a list with all of them.
Source code in src/pynteny/parsers/syntenyparser.py
73 74 75 76 77 78 79 80 81 82 83 | |
get_all_HMMs_in_structure(synteny_structure)
Get hmm names employed in synteny structure, if more than one hmm for the same gene, return a list with all of them.
Source code in src/pynteny/parsers/syntenyparser.py
96 97 98 99 100 101 102 103 | |
get_gene_symbols_in_structure(synteny_structure)
Retrieve gene symbols contained in synteny structure.
Source code in src/pynteny/parsers/syntenyparser.py
86 87 88 89 90 91 92 93 | |
get_maximum_distances_in_structure(synteny_structure)
Get maximum gene distances in synteny structure.
Source code in src/pynteny/parsers/syntenyparser.py
129 130 131 132 133 134 135 | |
get_strands_in_structure(synteny_structure, parsed_symbol=True)
Get strand sense list in structure.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/parsers/syntenyparser.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
is_valid_structure(synteny_structure)
Validate synteny structure format.
Source code in src/pynteny/parsers/syntenyparser.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |
parse_genes_in_synteny_structure(synteny_structure, hmm_meta)
Convert gene-based synteny structure into a HMM-based one. If a gene symbol matches more than one HMM, return a HMM group like: (HMM1 | HMM2 | ...).
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/parsers/syntenyparser.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
parse_synteny_structure(synteny_structure)
Parse synteny structure string.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/parsers/syntenyparser.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | |
reformat_synteny_structure(synteny_structure)
Remove illegal symbols and extra white space.
Source code in src/pynteny/parsers/syntenyparser.py
20 21 22 23 | |
split_strand_from_locus(locus_str, parsed_symbol=True)
Split strand info from locus tag / HMM model.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/parsers/syntenyparser.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
Module cli
Pynteny
Main command based on: https://selvakumar-arumugapandian.medium.com/ \ command-line-subcommands-with-pythons-argparse-4dbac80f7110
Source code in src/pynteny/cli.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
__init__(subcommand, subcommand_args)
Initialize main command
| Parameters: |
|
|---|
Source code in src/pynteny/cli.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
build()
Call build subcommand.
Source code in src/pynteny/cli.py
104 105 106 107 108 | |
cite()
Print pynteny's citation string
Source code in src/pynteny/cli.py
122 123 124 125 126 127 | |
download()
Call download subcommand.
Source code in src/pynteny/cli.py
116 117 118 119 120 | |
parse()
Call parse subcommand.
Source code in src/pynteny/cli.py
110 111 112 113 114 | |
search()
Call search subcommand.
Source code in src/pynteny/cli.py
98 99 100 101 102 | |
SubcommandParser
Argparse parsers for Pynteny's subcommands
Source code in src/pynteny/cli.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 | |
build()
staticmethod
Parser for the build subcommand.
| Returns: |
|
|---|
Source code in src/pynteny/cli.py
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | |
cite()
staticmethod
Parser for the cite subcommand.
| Returns: |
|
|---|
Source code in src/pynteny/cli.py
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 | |
download()
staticmethod
Parser for the download subcommand.
| Returns: |
|
|---|
Source code in src/pynteny/cli.py
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 | |
get_help_str(subcommand)
staticmethod
Get help string for subcommand.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/cli.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | |
parse()
staticmethod
Parser for the parse subcommand.
| Returns: |
|
|---|
Source code in src/pynteny/cli.py
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 | |
search()
staticmethod
Parser for the search subcommand.
| Returns: |
|
|---|
Source code in src/pynteny/cli.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | |
Module subcommands
Functions containing CLI subcommands
build_database(args)
Build annotated peptide database from input assembly or GenBank data.
| Parameters: |
|
|---|
Source code in src/pynteny/subcommands.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
download_hmms(args)
Download HMM (PGAP) database from NCBI.
| Parameters: |
|
|---|
Source code in src/pynteny/subcommands.py
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |
get_citation(args, silent=False)
Get Pynteny citation string.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/subcommands.py
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | |
init_logger(args)
Initialize logger object
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/subcommands.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
parse_gene_ids(args)
Convert gene symbols to hmm names.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/subcommands.py
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |
synteny_search(args)
Search peptide database by synteny structure containing HMMs.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/subcommands.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
Module utils
Functions and classes for general purposes
CommandArgs
Base class to hold command line arguments.
Source code in src/pynteny/utils.py
27 28 29 30 31 | |
ConfigParser
Handle Pynteny configuration file.
Source code in src/pynteny/utils.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
get_config()
Load config file.
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
74 75 76 77 78 79 80 81 82 | |
get_config_path()
Show config file path.
Source code in src/pynteny/utils.py
70 71 72 | |
get_default_config()
classmethod
Initialize ConfigParser with default config file.
Source code in src/pynteny/utils.py
41 42 43 44 | |
get_field(key)
Get field from config file.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
99 100 101 102 103 104 105 106 107 108 | |
initialize_config_file()
staticmethod
Initialize empty config file.
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
update_config(key, value)
Update config file
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
89 90 91 92 93 94 95 96 97 | |
write_config()
Write config dict to file.
Source code in src/pynteny/utils.py
84 85 86 87 | |
download_file(url, output_file)
Download file from url
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
204 205 206 207 208 209 210 211 212 213 214 215 216 | |
extract_gz_file(gz_file, dest_dir=None)
Extract gz files to dest_dir.
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | |
extract_tar_file(tar_file, dest_dir=None)
Extract tar or tar.gz files to dest_dir.
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
extract_to_directory(file, destination_dir)
Extract hmm database (tar.gz) to downlaod directory
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | |
flatten_directory(directory)
Flatten directory, i.e. remove all subdirectories and copy all files to the top level directory.
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 | |
is_gz_file(gz_file)
Check whether file is gz-compressed.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
232 233 234 235 236 237 238 239 240 241 242 | |
is_right_list_nested_type(list_object, inner_type)
Check if all elements in list are of the same type.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
354 355 356 357 358 359 360 361 362 363 364 | |
is_tar_file(tar_file)
Check whether file is tar-compressed.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
219 220 221 222 223 224 225 226 227 228 229 | |
list_tar_dir(tar_dir)
List files within tar or tar.gz directory.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
312 313 314 315 316 317 318 319 320 321 322 323 324 | |
parallelize_over_input_files(callable, input_list, processes=None, max_tasks_per_child=10, **callable_kwargs)
Parallelize callable over a set of input objects using a pool of workers. Inputs in input list are passed to the first argument of the callable. Additional callable named arguments may be passed.
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
set_default_output_path(input_path, tag=None, extension=None, only_filename=False, only_basename=False, only_dirname=False)
Utility function to generate a default path to output file or directory based on an input file name and path.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |
split_hmms(hmm_file, output_dir)
Split PFAM-A hmm database into individual HMM files and extract metadata file.
| Parameters: |
|
|---|
Source code in src/pynteny/utils.py
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | |
terminal_execute(command_str, suppress_shell_output=False, work_dir=None, return_output=False)
Execute given command in terminal through Python.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/pynteny/utils.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
Module wrappers
In-process replacements for the external CLI tools that Pynteny used to shell out to (HMMER, Prodigal, seqkit). These now rely on the pure-Python, pip-installable packages pyhmmer, pyrodigal and pyfastx so that Pynteny can be installed without conda.
run_HMM_search(hmm_model, input_fasta, output_file=None, method='hmmsearch', processes=None, additional_args=None)
Run an HMM search with pyhmmer and write the results as an HMMER3
tabular (--tblout) output file.
In-process replacement for the hmmsearch/hmmscan CLI tools. The
on-disk format is unchanged (standard HMMER3 tabular output), so downstream
parsing and result reuse keep working as before.
| Parameters: |
|
|---|
Source code in src/pynteny/wrappers.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
run_seqkit_nodup(input_fasta, output_fasta=None, export_duplicates=False)
Remove duplicated sequences from a fasta file (by sequence content).
Pure-Python replacement for seqkit rmdup -s.
| Parameters: |
|
|---|
Source code in src/pynteny/wrappers.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |