Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Jun 29, 2024
1 parent f8ae77c commit 9fd799b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 18 deletions.
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## template
# template


**template for pathology atlas repositories**
Expand Down Expand Up @@ -208,3 +208,48 @@ See Microscopy with viewer:
youtube: https://www.youtube.com/watch?v=youtube_link
```
<hr>
<a href="https://www.patolojiatlasi.com/"><img src ="https://www.patolojiatlasi.com/images/coverTR.png" style="width:50%;"></a>
<a href="https://www.histopathologyatlas.com/"><img src ="https://www.patolojiatlasi.com/images/coverEN.png" style="width:50%;"></a>
- Sosyal medyadan derlenen görüntülerden oluşan patoloji notları için [tıklayın](https://www.patolojinotlari.com/).
- For social media based pathology notes [click here](https://www.patolojinotlari.com/).
<a href="https://www.patolojinotlari.com/"><img src ="https://www.patolojiatlasi.com/images/patolojinotlari.com.png" style="width:50%;"></a>
<iframe width="160" height="400" src="https://leanpub.com/patolojiatlasi/embed" frameborder="0" allowtransparency="true"></iframe>
<a href="https://play.google.com/store/books/details?id=um5jEAAAQBAJ&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1"><img src="https://play.google.com/intl/en_us/badges/static/images/badges/tr_badge_web_generic.png" style="width: 250px;"></a>
<a href="https://books.apple.com/us/book/patoloji-atlas%C4%B1/id6456452218?itscg=30200&amp;itsct=books_box_badge&amp;ls=1" style="display: inline-block; overflow: hidden; border-radius: 13px; width: 250px; height: 83px;"><img src="https://tools.applemediaservices.com/api/badges/get-it-on-apple-books/badge/tr-tr?size=250x83&amp;releaseDate=1690848000" alt="Get it on Apple Books" style="border-radius: 13px; width: 250px; height: 83px;"></a>
| Atıf için (Citation) |
|------------------------------------------------------------------------|
| [![](https://zenodo.org/badge/452585667.svg)](https://zenodo.org/badge/latestdoi/452585667) |
| [Open Science Framework DOI: 10.17605/OSF.IO/6W5K8](https://osf.io/6w5k8/) |
| [![](https://img.shields.io/github/issues/patolojiatlasi/patolojiatlasi.github.io)](https://github.com/patolojiatlasi/patolojiatlasi.github.io/issues) |
| [![](https://img.shields.io/github/license/patolojiatlasi/patolojiatlasi.github.io)](https://github.com/patolojiatlasi/patolojiatlasi.github.io/blob/main/LICENSE) |
| <a href="https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fwww.patolojiatlasi.com%2F%20@patolojinotlari%20@serdarbalci%20"><img src="https://img.shields.io/twitter/url?label=Patoloji%20Atlas%C4%B1&amp;style=social&amp;url=https%3A%2F%2Fwww.patolojiatlasi.com%2F" alt="Twitter"/></a> |
| <a href="https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fwww.patolojinotlari.com%2F%20@patolojinotlari%20@serdarbalci%20"><img src="https://img.shields.io/twitter/url?label=Patoloji%20Notlar%C4%B1&amp;style=social&amp;url=https%3A%2F%2Fwww.patolojinotlari.com%2F" alt="Twitter"/></a> |
39 changes: 22 additions & 17 deletions generate_qmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ bibliography: references.bib
```{r echo=FALSE, include=TRUE}
```{r language {{template}}, echo=FALSE, include=TRUE}
source("./R/language.R")
output_type <- knitr::opts_knit$get("rmarkdown.pandoc.to")
```
```{asis {{TemplateTR}} TR , echo = (language == "TR")}
## {{TemplateTR}} {#sec-{{template}} }
## {{template}} - {{TemplateTR}} {#sec-{{template}} }
```
```{asis {{TemplateEN}} EN , echo = (language == "EN")}
## {{TemplateEN}} {#sec-{{template}} }
## {{template}} - {{TemplateEN}} {#sec-{{template}} }
```
'
Expand Down Expand Up @@ -574,7 +574,7 @@ yaml_string <- paste0("

## wsi_link_string ----

wsi_link_wsi_string <- '
wsi_link_string <- '
[https://images.patolojiatlasi.com/{{template}}/](https://images.patolojiatlasi.com/{{template}}/)
Expand All @@ -589,10 +589,6 @@ wsi_link_wsi_string <- '
<a href="https://images.patolojiatlasi.com/{{template}}/{{stain}}.html"><img alt="Tam Ekran Görmek İçin Resmi Tıklayın" src ="https://www.patolojiatlasi.com/screenshots/thumbnail_{{template}}-{{stain}}.png" style="width:25%;"></a>
Mikroskopik görüntüleri inceleyin:
<iframe src="https://images.patolojiatlasi.com/{{template}}/{{stain}}.html" style="height:600px;width:100%;" data-external="1"></iframe>
**{{TemplateEN}}**
Expand All @@ -601,6 +597,19 @@ Mikroskopik görüntüleri inceleyin:
<a href="https://images.patolojiatlasi.com/{{template}}/{{stain}}.html"><img alt="Click for Full Screen WSI" src ="https://www.patolojiatlasi.com/screenshots/thumbnail_{{template}}-{{stain}}.png" style="width:25%;"></a>
'


## wsi_string ----

wsi_string <- '
Mikroskopik görüntüleri inceleyin:
<iframe src="https://images.patolojiatlasi.com/{{template}}/{{stain}}.html" style="height:600px;width:100%;" data-external="1"></iframe>
See Microscopy with viewer:
<iframe src="https://images.patolojiatlasi.com/{{template}}/{{stain}}.html" style="height:600px;width:100%;" data-external="1"></iframe>
Expand Down Expand Up @@ -628,9 +637,8 @@ youtube_string <-
## end_string ----

end_string <-
''
'
'
<hr>
<a href="https://www.patolojiatlasi.com/"><img src ="https://www.patolojiatlasi.com/images/coverTR.png" style="width:50%;"></a>
Expand Down Expand Up @@ -672,10 +680,10 @@ end_string <-
| <a href="https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fwww.patolojiatlasi.com%2F%20@patolojinotlari%20@serdarbalci%20"><img src="https://img.shields.io/twitter/url?label=Patoloji%20Atlas%C4%B1&amp;style=social&amp;url=https%3A%2F%2Fwww.patolojiatlasi.com%2F" alt="Twitter"/></a> |
| <a href="https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fwww.patolojinotlari.com%2F%20@patolojinotlari%20@serdarbalci%20"><img src="https://img.shields.io/twitter/url?label=Patoloji%20Notlar%C4%B1&amp;style=social&amp;url=https%3A%2F%2Fwww.patolojinotlari.com%2F" alt="Twitter"/></a> |
'
'


# readme_text ----
Expand Down Expand Up @@ -726,14 +734,11 @@ for (s in stain) {
stain = s
)

wsi_link_wsi_text <- whisker::whisker.render(wsi_link_wsi_string, data_wsi)
wsi_link_text <- whisker::whisker.render(wsi_link_string, data_wsi)

# wsi_text <- whisker::whisker.render(wsi_string, data_wsi)
wsi_text <- whisker::whisker.render(wsi_string, data_wsi)

readme_text <- paste(readme_text, wsi_link_wsi_text,
# wsi_text,
sep = "\n\n"
)
readme_text <- paste(readme_text, wsi_link_text, wsi_text, sep = "\n\n")

}

Expand Down

0 comments on commit 9fd799b

Please sign in to comment.