Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dash Cytoscape 〜 Pythonによるインタラクティブ・ネットワーク可視化入門 / StartPython#67

komo_fr
March 10, 2021

Dash Cytoscape 〜 Pythonによるインタラクティブ・ネットワーク可視化入門 / StartPython#67

みんなのPython勉強会#67の発表資料です。

Twitter: @komo_fr
Event page: https://startpython.connpass.com/event/201613/

komo_fr

March 10, 2021
Tweet

More Decks by komo_fr

Other Decks in Programming

Transcript

  1. %BTI$ZUPTDBQF
    1ZUIPOʹΑΔ
    ΠϯλϥΫςΟϒɾωοτϫʔΫՄࢹԽೖ໳
    ΈΜͳͷ1ZUIPOษڧձ

    View full-size slide

  2. !LPNP@GS
    ࣗݾ঺հ
    2
    ‣ ݹ໦༑ࢠ
    ‣ 5XJUUFS!LPNP@GS
    ‣ ࢓ࣄ
    ‣ 1ZUIPOʹΑΔσʔλղੳɺιϑτ΢ΤΞ։ൃ
    ‣ גࣜձࣾϏʔϓϥ΢υ
    ‣ ౦ژେֶઌ୺Պֶٕज़ݚڀηϯλʔ
    ‣ ࠷ۙͷάϥϑඳը͸΄΅QMPUMZ
    ‣ 1ZUIPOίϛϡχςΟʹ͓͚Δొஃྺ
    ‣ 1Z$PO+1 UBML

    ‣ &VSP1ZUIPO -5

    &VSP1ZUIPO!εΠε

    View full-size slide

  3. !LPNP@GS
    1&1ؒͷҾ༻ؔ܎ωοτϫʔΫ
    3
    ࣮૷͸CPLFI

    View full-size slide

  4. !LPNP@GS
    QMPUMZ%BTIຊൃചத
    ‣ 1ZUIPOΠϯλϥΫςΟϒɾ
    σʔλϏδϡΞϥΠθʔγϣϯೖ໳
    ʕ1MPUMZ%BTIʹΑΔ
    σʔλՄࢹԽͱ8FCΞϓϦߏஙʕ
    ‣ !ESJMMFS খ઒ӳ޾ ݹ໦༑ࢠ
    ‣ ݹ໦ LPNP@GS
    ͸
    %BTI$ZUPTDBQFষΛ୲౰
    4

    View full-size slide

  5. !LPNP@GS
    "HFOEB
    ‣ ωοτϫʔΫՄࢹԽͱ͸
    ‣ $07*%࿦จωοτϫʔΫͷྫɾσϞ
    ‣ ωοτϫʔΫՄࢹԽͷجຊ
    ‣ 1ZUIPOͰωοτϫʔΫՄࢹԽΛߦ͏ํ๏
    ‣ %BTI$UZUPTDBQFͷಛ௃ɾίʔυྫ
    ‣ ·ͱΊ
    5

    View full-size slide

  6. !LPNP@GS
    ωοτϫʔΫՄࢹԽͱ͸
    ‣ ʮԿ͔ʯͱʮԿ͔ʯͷؔ܎ΛՄࢹԽ͢Δख๏ͷͻͱͭ
    ‣ σʔλͱσʔλͷؔ܎ʹண໨͢Δ͜ͱͰɺ
    σʔλ୯ମͷଐੑͰ͸Θ͔Βͳ͍ੑ࣭Λ୳Δ
    ‣ ྫ
    ‣ ࿦จͱ࿦จͷҾ༻ؔ܎
    ‣ ༑ਓؔ܎
    6
    ϊʔυ ϊʔυ
    Τοδ
    ۭखΫϥϒͷ
    ༑ਓؔ܎ωοτϫʔΫ
    ϊʔυ෦һ
    Τοδަ༑ؔ܎
    ৭ॴଐ೿ൊʢ෦௕೿ࢣൣ೿ʣ

    View full-size slide

  7. !LPNP@GS
    $07*%ؔ࿈ͷ࿦จωοτϫʔΫ
    ‣ $03%ʢ$07*%0QFO3FTFBSDI%BUBTFU$IBMMFOHFʣ
    ‣ $07*%ؔ࿈࿦จΛͷτϐοΫʹ෼ྨ͠Ҿ༻ؔ܎Λදࣔ

    7
    ৭࿦จͷτϐοΫ
    ϊʔυαΠζඃҾ༻਺
    දࣔର৅ͱͳΔ
    ඃҾ༻਺ͷ࠷খ஋
    ެ։ઌͷδϟʔφϧ
    Τοδͷදࣔɾඇදࣔ
    ੾ସ
    IUUQTEBTIHBMMFSZQMPUMZIPTUEBTIDZUPTDBQFMEB

    View full-size slide

  8. !LPNP@GS
    ωοτϫʔΫσʔλͷྫ
    w IUUQOFUXPSLSFQPTJUPSZDPN
    8

    View full-size slide

  9. !LPNP@GS
    ωοτϫʔΫՄࢹԽͷجຊ
    ‣ ߏ੒ཁૉʢϊʔυͱΤοδʣ
    ‣ ʮԿͱԿ͕ؔ܎͋Δ͔ʯΛࣔ͢ߏ଄
    ‣ Կͷϊʔυ͕͋Δ͔ɺͲͷϊʔυಉ࢜ʹΤοδ͕ுΒΕ͍ͯΔ͔
    ‣ ελΠϧʢେ͖͞ɺ৭ɺܗঢ়ͳͲʣ
    ‣ ͨ͘͞Μͷ࿦จ͔ΒҾ༻͞Ε͍ͯͨΒେ͖͘͢Δ
    ‣ ࿦จͷΧςΰϦ͝ͱʹ৭Λม͑Δ
    ‣ Ҿ༻ճ਺͕ଟ͍΄ͲΤοδΛଠ͘͢Δ
    ‣ ϊʔυͷ഑ஔ
    ‣ ෺ཧతͳҐஔͱϊʔυͷ഑ஔΛҰகͤ͞Δ
    ‣ Ӻ΍ۭߓͷަ௨ωοτϫʔΫͳͲ
    ‣ ͹ͶྗֶΛ༻͍ͯɺࢹೝੑ͕ߴ͍Α͏ʹ഑ஔ͢Δ
    9

    View full-size slide

  10. !LPNP@GS
    ωοτϫʔΫՄࢹԽΛΠϯλϥΫςΟϒʹߦ͏ར఺
    10
    ‣ ϊʔυͷ਺͕૿͑Δͱɺ੩ࢭըͰ͸ݶք͕͋Δ
    ‣ ϊʔυΛΫϦοΫͯ͠ɺྡ઀͢ΔϊʔυΛڧௐ͢Δ
    ‣ ϊʔυΛಈ͔ͯ͠ߏ଄Λ೺Ѳ͠΍͘͢͢Δ
    ‣ ֦େɾॖখͰશମͱ෦෼Λߦ͖དྷ͢Δ
    ‣ 6*Λ࢖ͬͯɺදࣔ͢Δϊʔυ΍
    ഑ஔɾελΠϧΛมߋ͢Δ
    ‣ ͳͲ
    ‣ ʮབྷ·ͬͨڊେͳໟۄʯ໰୊
    ‣ ϊʔυ͕ଟ͗ͯ͢
    Կͷ͜ͱ͔Θ͔Βͳ͍ঢ়ଶͷ
    ωοτϫʔΫ

    View full-size slide

  11. !LPNP@GS
    1ZUIPOͰωοτϫʔΫՄࢹԽΛߦ͏ํ๏
    ‣ /FUXPSL9
    ‣ ෳࡶωοτϫʔΫͷͨΊͷύοέʔδɻωοτϫʔΫߏ଄ͷߏங΍ม׵ɺ෼ੳɺϊʔυͷ഑ஔΞϧΰϦζϜͳͲɻ
    ‣ ՄࢹԽ෦෼͸NBUQMPUMJCʹґଘʢ੩ࢭը૾ͷΈʣ
    ‣ #PLFI
    ‣ /FUXPSL9ͱͷ࿈ܞ͕εϜʔζɻϗόʔʹΑΔৄࡉද͕ࣔՄɻ+VQZUFSʹ΋ग़ྗՄɻ
    )5.-Ͱग़ྗͰ͖ΔͷͰαʔόϨεͰಈ͔͍ͨ͠ͱ͖͸ศརɻ
    ‣ ༗޲άϥϑʹ͸ະରԠɻίʔϧόοΫͷఆ͕ٛͪΐͬͱେมɻ
    ‣ TUSFBNMJUBHSBQI
    ‣ 4USFBNMJUͷ௥Ճίϯϙʔωϯτ
    ‣ 4USFBNMJUΠϯλϥΫςΟϒͳάϥϑΛ૊ΈࠐΜͩ8FCΞϓϦΛ࡞ΕΔϑϨʔϜϫʔΫɻϓϩτλΠϓ޲͖ɻ
    ‣ SFBDUEHSBQIʹґଘ
    ‣ ʹϦϦʔε͞Εɺ·ͩ৘ใ͕গͳ͍ʢ(JU)VCͷTUBS਺΋ʣ
    ‣ %BTI$ZUPTDBQF
    ‣ %BTIͷ௥Ճίϯϙʔωϯτ
    ‣ %BTIΠϯλϥΫςΟϒͳάϥϑΛ૊ΈࠐΜͩ8FCΞϓϦΛ࡞ΕΔϑϨʔϜϫʔΫ
    ‣ $ZUPTDBQFKTʹґଘɻ$ZUPTDBQFKTͷػೳΛར༻Ͱ͖Δɻ༗޲άϥϑʹ΋ରԠɻ
    11
    ΠϯλϥΫςΟϒͳՄࢹԽ

    View full-size slide

  12. !LPNP@GS
    %BTI$ZUPTDBQFͷಛ௃
    ‣ ωοτϫʔΫՄࢹԽΛߦ͏ͨΊͷ%BTIͷίϯϙʔωϯτ
    ‣ (JU)VCIUUQTHJUIVCDPNQMPUMZEBTIDZUPTDBQF
    ‣ %BTIΠϯλϥΫςΟϒͳάϥϑΛ૊ΈࠐΜͩ8FCΞϓϦΛ࡞ΕΔϑϨʔϜ
    ϫʔΫ
    ‣ %BTIͷΪϟϥϦʔIUUQTEBTIHBMMFSZQMPUMZIPTU1PSUBM
    ‣ $ZUPTDBQFKTͷϥούͰ͋ΔͨΊɺ$ZUPTDBQFKTͷػೳͷҰ෦ʢϊʔυͷ഑ஔ
    ΞϧΰϦζϜͳͲʣΛར༻Ͱ͖Δ
    ‣ $ZUPTDBQF
    ωοτϫʔΫͷՄࢹԽͱ෼ੳ͕
    ߦ͑Δ044ͷ
    ϓϥοτϑΥʔϜ
    12

    View full-size slide

  13. !LPNP@GS
    %BTI$ZUPTDBQFͷجຊɾίʔυྫ
    ‣ QJQJOTUBMMEBTIDZUPTDBQF
    13
    ߏ੒ཁૉ
    ϊʔυͷ഑ஔ
    ελΠϧ
    ϊʔυͷఆٛ
    Τοδͷఆٛ
    ϊʔυશମʹର͢ΔελΠϧ
    ϊʔυ#ʹର͢ΔελΠϧ

    View full-size slide

  14. !LPNP@GS
    ίʔϧόοΫͷར༻
    ‣ %BTIಉ༷ίʔϧόοΫΛ࢖ͬͯɺ
    ߏ੒ཁૉελΠϧ഑ஔΛมߋͰ͖Δ
    14

    View full-size slide

  15. !LPNP@GS
    ·ͱΊ
    ‣ ωοτϫʔΫՄࢹԽͷجຊදݱʹ͍ͭͯ঺հ͠·ͨ͠
    ‣ ߏ੒ཁૉελΠϧϊʔυͷ഑ஔ
    ‣ 1ZUIPOͰ࢖༻Ͱ͖Δύοέʔδͱɺ
    %BTI$ZUPTDBQFͷಛ௃ɾجຊʹ͍ͭͯ঺հ͠·ͨ͠
    ‣ %BTI$ZUPTDBQFެࣜυΩϡϝϯτ
    ‣ IUUQTEBTIQMPUMZDPNDZUPTDBQF
    ‣ (JU)VC
    ‣ IUUQTHJUIVCDPNQMPUMZEBTIDZUPTDBQF
    15

    View full-size slide

  16. !LPNP@GS
    QMPUMZ%BTIຊൃചத ࠶ܝ

    ‣ 1ZUIPOΠϯλϥΫςΟϒɾ
    σʔλϏδϡΞϥΠθʔγϣϯೖ໳
    ʕ1MPUMZ%BTIʹΑΔ
    σʔλՄࢹԽͱ8FCΞϓϦߏஙʕ
    ‣ !ESJMMFS খ઒ӳ޾ ݹ໦༑ࢠ
    ‣ ݹ໦ LPNP@GS
    ͸
    %BTI$ZUPTDBQFষΛ୲౰
    16

    View full-size slide

  17. !LPNP@GS
    ൃදதʹ঺հͨ͠αΠτͷ63-
    w %BTI$ZUPTDBQFؔ࿈
    w %BTI(BMMFSZ
    w IUUQTEBTIHBMMFSZQMPUMZIPTU1PSUBM
    w 1MPUMZEBTIDZUPTDBQFEFNP$03%-%"BOBMZTJTPVUQVU
    w IUUQTEBTIHBMMFSZQMPUMZIPTUEBTIDZUPTDBQFMEB
    w %BTI$ZUPTDBQF (JU)VC

    w IUUQTHJUIVCDPNQMPUMZEBTIDZUPTDBQF
    w %BTI$ZUPTDBQFެࣜυΩϡϝϯτ
    w IUUQTEBTIQMPUMZDPNDZUPTDBQF
    17

    View full-size slide

  18. !LPNP@GS
    ൃදதʹ঺հͨ͠αΠτͷ63-
    w #PLFIؔ࿈
    w #PLFI(BMMFSZ
    w IUUQTEPDTCPLFIPSHFOMBUFTUEPDTHBMMFSZIUNM
    w #PLFIʹΑΔωοτϫʔΫՄࢹԽ
    w IUUQTEPDTCPLFIPSHFOMBUFTUEPDTVTFS@HVJEF
    HSBQIIUNM
    w 1&1.BQ #PLFIʹΑΔ1&1ωοτϫʔΫͷՄࢹԽ

    w IUUQTLPNPGSHJUIVCJPQFQ@NBQ@TJUFOFUXPSLIUNM
    18

    View full-size slide

  19. !LPNP@GS
    ൃදதʹ঺հͨ͠αΠτͷ63-
    w 4USFBNMJUؔ࿈
    w 4USFBNMJU(BMMFSZ
    w IUUQTTUSFBNMJUJPHBMMFSZ
    w 4USFBNMJU"HSBQIͷσϞ
    w IUUQTTIBSFTUSFBNMJUJPDISJTDISPTTJOTQJSBUJPOBMT
    NBJONBJOQZ
    19
    w ͦͷଞ
    w /FUXPSL3FQPTJUPSZ ωοτϫʔΫσʔλ৭ʑ

    w IUUQOFUXPSLSFQPTJUPSZDPN

    View full-size slide